Direction Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
Description
Determines the writing direction of a paragraph. The enumeration contains the following values:
Syntax
public enum DirectionPublic Enum DirectionMembers
| Member | Value | Description |
|---|---|---|
| LeftToRight | 1 | The writing direction is left to right, which means that blocks of text with left to right and right to left characters are ordered from left to right. |
| RightToLeft | 2 | The writing direction is right to left, which means that blocks of text with left to right and right to left characters are ordered from right to left. |
Examples
The following example selects the Left To Right value from the Direction enumeration and uses it as a documented workflow choice.
Direction value = Direction.LeftToRight;
Console.WriteLine($"Using Direction: {value}");Dim value As Direction = Direction.LeftToRight
Console.WriteLine($"Using Direction: {value}")See Also
Selection.ChangeDirection Method, ParagraphFormat.Direction Property.