Table of Contents

Interface ISizerItem

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Provides access to the individual ISizer item.

public interface ISizerItem : IDisposableObject, IDisposable

Properties

Border

Gets or sets the border attribute.

Flag

Gets or sets the flag attribute.

Id

Gets or sets the numeric id of the item. Returns (-3) if the id has not been set.

IsControl

Is this item a control?

IsShown

Gets whether item is shown.

IsSizer

Is this item a sizer?

IsSpacer

Is this item a spacer?

MaxSize

Gets the maximum size to be allocated for this item.

MaxSizeWithBorder

Gets the maximum size to be allocated for this item including border size.

MinSize

Gets or sets the minimum size to be allocated for this item.

MinSizeWithBorder

Gets the minimum size to be allocated for this item including border size.

Proportion

Gets or sets the proportion item attribute.

Ratio

Gets or sets the ration item attribute.

Size

Gets the current size of the item, as set in the last Layout.

Methods

CalcMin()

Calculates the minimum desired size for the item, including any space needed by borders.

DetachControl()

Enables deleting the SizerItem without resetting the sizer in the contained control.

DetachSizer()

Enables deleting the SizerItem without destroying the contained sizer.

GetPosition()

Gets the current position of the item, as set in the last Layout.

GetRect()

Gets the rectangle of the item on the parent window, excluding borders.

GetSizer()

If this item is tracking a sizer, return it; null otherwise.

GetSpacer()

If this item is tracking a spacer, return its size.

SetControl(Control)

Set the control to be tracked by this item. The old control isn't deleted.

SetDimension(PointI, SizeI)

Set the position and size of the space allocated to the sizer, and adjust the position and size of the item to be within that space taking alignment and borders into account.

SetInitSize(int, int)

Sets the initial size.

SetRatio(int, int)

Sets Ratio item attribute.

SetSizer(ISizer)

Set the sizer tracked by this item. Old sizer, if any, is deleted.

SetSpacer(int, int)

Set the size of the spacer tracked by this item. Old spacer, if any, is deleted.

Show(bool)

Set the show item attribute, which sizers use to determine if the item is to be made part of the layout or not. If the item is tracking a control then it is shown or hidden as needed.