# Selection.Attribute Enumeration

> Determines a certain attribute. This enumeration is used with the IsCommonValueSelected method.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > Selection.Attribute Enumeration
- **1022 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/attribute-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/attribute-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/attribute-enumeration/llms-full.txt

---

### Description

Determines a certain attribute. This enumeration is used with the IsCommonValueSelected method.

### Syntax

```csharp
public enum Selection.Attribute
```

```vbnet
Public Enum Selection.Attribute
```

### Members

| Member | Value | Description |
|---|---|---|
| AutoBaseline | 32768 | Specifies the attribute set through the AutoBaseline property. |
| Baseline | 1 | Specifies the attribute set through the Baseline property. |
| Bold | 2 | Specifies the attribute set through the Bold property. |
| Capitals | 65536 | Specifies the attribute set through the Capitals property. |
| CharacterScaling | 131072 | Specifies the attribute set through the CharacterScaling property. |
| CharacterSpacing | 262144 | Specifies the attribute set through the CharacterSpacing property. |
| FontName | 8 | Specifies the attribute set through the FontName property. |
| FontSize | 16 | Specifies the attribute set through the FontSize property. |
| ForeColor | 256 | Specifies the attribute set through the ForeColor property. |
| FormattingStyle | 8192 | Specifies the attribute set through the FormattingStyle property. |
| Italic | 4 | Specifies the attribute set through the Italic property. |
| Strikeout | 32 | Specifies the attribute set through the Strikeout property. |
| TextBackColor | 512 | Specifies the attribute set through the TextBackColor property. |
| Underline | 64 | Specifies the attribute set through the Underline property. |
| Start | 1024 | Not described in the reference. |
| Length | 2048 | Not described in the reference. |
| Text | 4096 | Not described in the reference. |
| Culture | 16384 | Not described in the reference. |
| All | 524287 | Not described in the reference. |

### Examples

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

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

```vbnet
Dim value As Selection.Attribute = Selection.Attribute.Baseline
Console.WriteLine($"Using Attribute: {value}")
```

---

## Nearby

- **Previous:** [Selection Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/llms-full.txt)
- **Next:** [Selection.AutoBaseline Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/autobaseline-property/llms-full.txt)
