Attributes 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 the style's attributes. This enumeration is used with the IsInheritedFromParagraph and ResetToParagraph methods.
Syntax
[]
public enum InlineStyle.Attributes<Flags>
Public Enum InlineStyle.AttributesMembers
| Member | Value | Description |
|---|---|---|
| Baseline | 64 | Specifies the attribute set through the style's Baseline property. |
| Bold | 4 | Specifies the attribute set through the style's Bold property. |
| FontName | 1 | Specifies the attribute set through the style's FontName property. |
| FontSize | 2 | Specifies the attribute set through the style's FontSize property. |
| ForeColor | 128 | Specifies the attribute set through the style's ForeColor property. |
| Italic | 8 | Specifies the attribute set through the style's Italic property. |
| Strikeout | 32 | Specifies the attribute set through the style's Strikeout property. |
| TextBackColor | 256 | Specifies the attribute set through the style's TextBackColor property. |
| Underline | 16 | Specifies 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}");Dim value As InlineStyle.Attributes = InlineStyle.Attributes.FontName
Console.WriteLine($"Using Attributes: {value}")