Table of Contents

Interface ISizerFlags

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Allows to specify SizerFlag in the convenient way.

public interface ISizerFlags : IDisposableObject, IDisposable

Methods

Align(GenericAlignment)

Sets the alignment.

Border(GenericDirection)

Sets the ISizerFlags to have a border with size as returned by GetDefaultBorder().

Border(GenericDirection, int)

Sets the ISizerFlags to have a border of a number of pixels specified by borderInPixels with the directions specified by direction.

Bottom()

Aligns the object to the bottom, similar for Align(GenericAlignment) with Bottom.

Center()

Sets the object of the ISizerFlags to center itself in the area it is given.

CenterHorizontal()

Center an item only in horizontal direction.

CenterVertical()

Center an item only in vertical direction.

DoubleBorder(GenericDirection)

Sets the border in the given direction having twice the default border size.

DoubleHorzBorder()

Sets the border in left and right directions having twice the default border size.

Expand()

Sets the object of the ISizerFlags to expand to fill as much area as it can.

FixedMinSize()

Set the FixedMinSize flag which indicates that the initial size of the control should be also set as its minimal size.

GetBorderInPixels()

Gets current border width value.

GetDefaultBorder()

Gets the border used by default in Border(GenericDirection) method.

GetDefaultBorderFractional()

Gets the border used by default in Border(GenericDirection) method, with fractional precision. This is useful when the border is scaled to a non-integer DPI.

GetFlags()

Gets current flags value.

GetProportion()

Gets current proportion value.

HorzBorder()

Sets the border in left and right directions having the default border size.

Left()

Aligns the object to the left, similar for Align(GenericAlignment) with Left.

Proportion(int)

Sets the proportion of this ISizerFlags to proportion.

ReserveSpaceEvenIfHidden()

Set the ReserveSpaceEvenIfHidden flag. Makes the item ignore control's visibility status.

Right()

Aligns the object to the right, similar for Align(GenericAlignment) with Right.

Shaped()

Set the Shaped flag which indicates that the elements should always keep the fixed width to height ratio equal to its original value.

Top()

Aligns the object to the top, similar for Align(GenericAlignment) with Top.

TripleBorder(GenericDirection)

Sets the border in the given direction having 3X of the default border size.