TX Text Control .NET Server

Attributes Enumeration

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

Description

Determines the style's attributes. This enumeration is used with the IsInheritedFromParagraph and ResetToParagraph methods.

Syntax

[Flags]
public enum InlineStyle.Attributes

Members

MemberValueDescription
Baseline64Specifies the attribute set through the style's Baseline property.
Bold4Specifies the attribute set through the style's Bold property.
FontName1Specifies the attribute set through the style's FontName property.
FontSize2Specifies the attribute set through the style's FontSize property.
ForeColor128Specifies the attribute set through the style's ForeColor property.
Italic8Specifies the attribute set through the style's Italic property.
Strikeout32Specifies the attribute set through the style's Strikeout property.
TextBackColor256Specifies the attribute set through the style's TextBackColor property.
Underline16Specifies the attribute set through the style's Underline property.

Examples

The following example selects the Font Name value from the Attributes enumeration and uses it as a documented workflow choice.

InlineStyle.Attributes value = InlineStyle.Attributes.FontName;
Console.WriteLine($"Using Attributes: {value}");

Further Reading

  • Simulating 'Use Paragraph Font' –