TX Text Control .NET for WPF

Attribute Enumeration

Enumeration
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

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.Attribute

Members

MemberValueDescription
AbsoluteLineSpacing64Specifies the attribute set through the AbsoluteLineSpacing property.
Alignment1Specifies the attribute set through the Alignment property.
BackColor1048576Specifies the attribute set through the BackColor property.
BottomDistance16Specifies the attribute set through the BottomDistance property.
Direction262144Specifies the attribute set through the Direction property.
Frame512Specifies the attribute set through the Frame property.
FrameDistance4096Specifies the attribute set through the FrameDistance property.
FrameLineColor2097152Specifies the attribute set through the FrameLineColor property.
FrameLineWidth2048Specifies the attribute set through the FrameLineWidth property.
FrameStyle1024Specifies the attribute set through the FrameStyle property.
HangingIndent8192Specifies the attribute set through the HangingIndent property.
Justification524288Specifies the attribute set through the Justification property.
KeepWithNext32768Specifies the attribute set through the KeepWithNext property.
LeftIndent2Specifies the attribute set through the LeftIndent property.
LineSpacing32Specifies the attribute set through the LineSpacing property.
PageBreakBefore65536Specifies the attribute set through the PageBreakBefore property.
RightIndent4Specifies the attribute set through the RightIndent property.
StructureLevel8388608Specifies the attribute set through the StructureLevel property.
TabPositions128Specifies the attribute set through the TabPositions property.
TabTypes256Specifies the attribute set through the TabTypes property.
TopDistance8Specifies the attribute set through the TopDistance property.
WidowOrphanLines131072Specifies the attribute set through the WidowOrphanLines property.
KeepLinesTogether16384Not described in the reference.
TabLeaders4194304Not described in the reference.
All16777215Not 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}");