TX Text Control .NET for Windows Forms

Attribute Enumeration

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

Description

Determines a certain page border attribute. This enumeration is used with the Selection.IsCommonValueSelected method. It contains the following values:

Syntax

public enum PageBorder.Attribute

Members

MemberValueDescription
BottomDistance2048Specifies the attribute set through the BottomDistance property.
BottomLineColor128Specifies the attribute set through the BottomLineColor property.
BottomLineWidth8Specifies the attribute set through the BottomLineWidth property.
FirstPageOnly8192Specifies the attribute set through the FirstPageOnly property.
LeftDistance256Specifies the attribute set through the LeftDistance property.
LeftLineColor16Specifies the attribute set through the LeftLineColor property.
LeftLineWidth1Specifies the attribute set through the LeftLineWidth property.
MeasureFromText4096Specifies the attribute set through the MeasureFromText property.
OmitFirstPage16384Specifies the attribute set through the OmitFirstPage property.
RightDistance1024Specifies the attribute set through the RightDistance property.
RightLineColor64Specifies the attribute set through the RightLineColor property.
RightLineWidth4Specifies the attribute set through the RightLineWidth property.
SurroundFooter65536Specifies the attribute set through the SurroundFooter property.
SurroundHeader32768Specifies the attribute set through the SurroundHeader property.
TopDistance512Specifies the attribute set through the TopDistance property.
TopLineColor32Specifies the attribute set through the TopLineColor property.
TopLineWidth2Specifies the attribute set through the TopLineWidth property.
All131071Not described in the reference.

Examples

The following example selects the Left Line Width value from the Attribute enumeration and uses it as a documented workflow choice.

PageBorder.Attribute value = PageBorder.Attribute.LeftLineWidth;
Console.WriteLine($"Using Attribute: {value}");