Attribute Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
Description
Determines a certain paragraph format attribute. This enumeration is used with the Selection.IsCommonValueSelected method. It contains the following values:
Syntax
public enum ParagraphFormat.AttributePublic Enum ParagraphFormat.AttributeMembers
| Member | Value | Description |
|---|---|---|
| AbsoluteLineSpacing | 64 | Specifies the attribute set through the AbsoluteLineSpacing property. |
| Alignment | 1 | Specifies the attribute set through the Alignment property. |
| BackColor | 1048576 | Specifies the attribute set through the BackColor property. |
| BottomDistance | 16 | Specifies the attribute set through the BottomDistance property. |
| Direction | 262144 | Specifies the attribute set through the Direction property. |
| Frame | 512 | Specifies the attribute set through the Frame property. |
| FrameDistance | 4096 | Specifies the attribute set through the FrameDistance property. |
| FrameLineColor | 2097152 | Specifies the attribute set through the FrameLineColor property. |
| FrameLineWidth | 2048 | Specifies the attribute set through the FrameLineWidth property. |
| FrameStyle | 1024 | Specifies the attribute set through the FrameStyle property. |
| HangingIndent | 8192 | Specifies the attribute set through the HangingIndent property. |
| Justification | 524288 | Specifies the attribute set through the Justification property. |
| KeepWithNext | 32768 | Specifies the attribute set through the KeepWithNext property. |
| LeftIndent | 2 | Specifies the attribute set through the LeftIndent property. |
| LineSpacing | 32 | Specifies the attribute set through the LineSpacing property. |
| PageBreakBefore | 65536 | Specifies the attribute set through the PageBreakBefore property. |
| RightIndent | 4 | Specifies the attribute set through the RightIndent property. |
| StructureLevel | 8388608 | Specifies the attribute set through the StructureLevel property. |
| TabPositions | 128 | Specifies the attribute set through the TabPositions property. |
| TabTypes | 256 | Specifies the attribute set through the TabTypes property. |
| TopDistance | 8 | Specifies the attribute set through the TopDistance property. |
| WidowOrphanLines | 131072 | Specifies the attribute set through the WidowOrphanLines property. |
| KeepLinesTogether | 16384 | Not described in the reference. |
| TabLeaders | 4194304 | Not described in the reference. |
| All | 16777215 | Not described in the reference. |
Examples
The following example selects the Alignment value from the Attribute enumeration and uses it as a documented workflow choice.
ParagraphFormat.Attribute value = ParagraphFormat.Attribute.Alignment;
Console.WriteLine($"Using Attribute: {value}");Dim value As ParagraphFormat.Attribute = ParagraphFormat.Attribute.Alignment
Console.WriteLine($"Using Attribute: {value}")