NSTextAlignment Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the horizontal alignment of text within its container.
[ObjCRuntime.Native(ConvertToManaged="NSTextAlignmentExtensions.ToManaged", ConvertToNative="NSTextAlignmentExtensions.ToNative")]
public enum NSTextAlignment
[<ObjCRuntime.Native(ConvertToManaged="NSTextAlignmentExtensions.ToManaged", ConvertToNative="NSTextAlignmentExtensions.ToNative")>]
type NSTextAlignment =
- Inheritance
-
NSTextAlignment
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| Left | 0 | Aligns text to the left edge of its container. |
| Right | 1 | Aligns text to the right edge of its container. |
| Center | 2 | Centers text within its container. |
| Justified | 3 | Justifies text so that both edges align with the container, except for the last line. |
| Natural | 4 | Aligns text according to the natural writing direction of its script (left for left-to-right languages, right for right-to-left languages). |