Table of Contents

Enum StringAlignment

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Specifies the alignment of text within a layout container.

public enum StringAlignment

Fields

Center = 1

Centers text within the available space.

Far = 2

Specifies that text is aligned near the ending edge (far from the origin position of the layout rectangle). In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left. In vertical layouts, the near position is bottom.

Near = 0

Specifies the text be aligned near the starting edge. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right. In vertical layouts, the near position is top.