# InputFormat.StructuredListFormat Property

> Gets or sets the number format for a structured list at the current input position. If text is selected, the property specifies this attribute for the whole selected text. This property determines the number format for the StructuredList property. The property's value is a member of the NumberFormat enumeration.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > InputFormat.StructuredListFormat Property
- **1006 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/structuredlistformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/structuredlistformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/structuredlistformat-property/llms-full.txt

---

### Description

Gets or sets the number format for a structured list at the current input position. If text is selected, the property specifies this attribute for the whole selected text. This property determines the number format for the [StructuredList](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/structuredlist-property/llms-full.txt) property. The property's value is a member of the [NumberFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/numberformat/enumeration/llms-full.txt) enumeration.

### Syntax

```csharp
public NumberFormat StructuredListFormat { get; set; }
```

```vbnet
Public Property StructuredListFormat As NumberFormat
```

### Members

| Value | Description |
|---|---|
| ArabicNumbers | The list is numbered with Arabic numbers (1, 2, 3...). |
| Letters | The list is numbered with letters (a, b, c...). |
| CapitalLetters | The list is numbered with capital letters (A, B, C...). |
| RomanNumbers | The list is numbered with Roman numbers (I, II, III...). |
| SmallRomanNumbers | The list is numbered with small Roman numbers (i, ii, iii...). |

### Examples

The following XAML example shows how to bind radio buttons to the StructuredListFormat property using the [WPF.BooleanConverter](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/booleanconverter/llms-full.txt) class and the [NumberFormats](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/numberformats-property/llms-full.txt) property.

```plaintext
…
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
…
<Window.Resources>
    <tx:BooleanConverter x:Key="boolConv" />
</Window.Resources>
…
<RadioButton
    Content="{Binding ElementName=textControl1, Path=InputFormat.NumberFormats[0], Mode=OneTime}"
    GroupName="structuredListFormat"
    IsChecked="{Binding
        ElementName=textControl1,
        Path=InputFormat.StructuredListFormat,
        Converter={StaticResource boolConv},
        ConverterParameter=ArabicNumbers}" />
<RadioButton
    Content="{Binding ElementName=textControl1, Path=InputFormat.NumberFormats[1], Mode=OneTime}"
    GroupName="structuredListFormat"
    IsChecked="{Binding
        ElementName=textControl1,
        Path=InputFormat.StructuredListFormat,
        Converter={StaticResource boolConv},
        ConverterParameter=Letters}" />
…
```

The following example changes the formatting applied to text entered at the end of a document by using `InputFormat.StructuredListFormat`.

```csharp
textControl.Text = "Project summary";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
InputFormat inputFormat = textControl.InputFormat;

inputFormat.StructuredListFormat = NumberFormat.ArabicNumbers;
Console.WriteLine($"Structured List Format used by Input Format: {inputFormat.StructuredListFormat}");
```

```vbnet
textControl.Text = "Project summary"
textControl.InputPosition = New InputPosition(textControl.Text.Length)
Dim inputFormat As InputFormat = textControl.InputFormat

inputFormat.StructuredListFormat = NumberFormat.ArabicNumbers
Console.WriteLine($"Structured List Format used by Input Format: {inputFormat.StructuredListFormat}")
```

### Remarks

The property's default value is NumberFormat.ArabicNumbers.

The property returns NumberFormat.None, if the text selection has no common number format.

---

## Nearby

- **Previous:** [InputFormat.StructuredList Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/structuredlist-property/llms-full.txt)
- **Next:** [InputFormat.StructureLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputformat/structurelevel-property/llms-full.txt)
