Skip to content

Alignment

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Specifies alignment within a container. Can be combined using flags.

csharp
[Flags]
public enum Alignment

Fields

Bottom

Align to the bottom edge vertically.

Returns: Alignment

csharp
Bottom = 16

BottomCenter

Center horizontally at the bottom.

Returns: Alignment

csharp
BottomCenter = HCenter | Bottom

BottomLeft

Align to the bottom-left corner.

Returns: Alignment

csharp
BottomLeft = Left | Bottom

BottomRight

Align to the bottom-right corner.

Returns: Alignment

csharp
BottomRight = Right | Bottom

Center

Center both horizontally and vertically.

Returns: Alignment

csharp
Center = HCenter | VCenter

HCenter

Center horizontally.

Returns: Alignment

csharp
HCenter = 4

Left

Align to the left edge horizontally.

Returns: Alignment

csharp
Left = 1

LeftCenter

Center vertically on the left.

Returns: Alignment

csharp
LeftCenter = Left | VCenter

None

No alignment specified (defaults to top-left).

Returns: Alignment

csharp
None = 0

Align to the right edge horizontally.

Returns: Alignment

csharp
Right = 2

RightCenter

Center vertically on the right.

Returns: Alignment

csharp
RightCenter = Right | VCenter

Top

Align to the top edge vertically.

Returns: Alignment

csharp
Top = 8

TopCenter

Center horizontally at the top.

Returns: Alignment

csharp
TopCenter = HCenter | Top

TopLeft

Align to the top-left corner.

Returns: Alignment

csharp
TopLeft = Left | Top

TopRight

Align to the top-right corner.

Returns: Alignment

csharp
TopRight = Right | Top

VCenter

Center vertically.

Returns: Alignment

csharp
VCenter = 32

Released under the MIT License.