TX Text Control .NET for Windows Forms

Attribute Enumeration

Enumeration
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 attribute. This enumeration is used with the IsCommonValueSelected method.

Syntax

public enum Selection.Attribute

Members

MemberValueDescription
AutoBaseline32768Specifies the attribute set through the AutoBaseline property.
Baseline1Specifies the attribute set through the Baseline property.
Bold2Specifies the attribute set through the Bold property.
Capitals65536Specifies the attribute set through the Capitals property.
CharacterScaling131072Specifies the attribute set through the CharacterScaling property.
CharacterSpacing262144Specifies the attribute set through the CharacterSpacing property.
FontName8Specifies the attribute set through the FontName property.
FontSize16Specifies the attribute set through the FontSize property.
ForeColor256Specifies the attribute set through the ForeColor property.
FormattingStyle8192Specifies the attribute set through the FormattingStyle property.
Italic4Specifies the attribute set through the Italic property.
Strikeout32Specifies the attribute set through the Strikeout property.
TextBackColor512Specifies the attribute set through the TextBackColor property.
Underline64Specifies the attribute set through the Underline property.
Start1024Not described in the reference.
Length2048Not described in the reference.
Text4096Not described in the reference.
Culture16384Not described in the reference.
All524287Not described in the reference.

Examples

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

Selection.Attribute value = Selection.Attribute.Baseline;
Console.WriteLine($"Using Attribute: {value}");

Further Reading