# Selection.ListFormat Property

> Gets or sets a bulleted or numbered list and/or its formatting attributes for the selected text. The property's value is an object of the type ListFormat.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.ListFormat Property
- **565 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/listformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/listformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/listformat-property/llms-full.txt

---

### Description

Gets or sets a bulleted or numbered list and/or its formatting attributes for the selected text. The property's value is an object of the type [ListFormat](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/listformat/llms-full.txt).

### Syntax

```csharp
public ListFormat ListFormat { get; set; }
```

```vbnet
Public Property ListFormat As ListFormat
```

### Examples

The following example formats the heading of a short document by using `Selection.ListFormat`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;

selection.ListFormat = new ListFormat();
if (selection.ListFormat != null)
{
    Console.WriteLine("Selection: List Format is available.");
}
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection

selection.ListFormat = New ListFormat()
If selection.ListFormat IsNot Nothing Then
    Console.WriteLine("Selection: List Format is available.")
End If
```

### Limitations

Runtime only.

---

## Nearby

- **Previous:** [Selection.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/length-property/llms-full.txt)
- **Next:** [Selection.Load Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selection/load-method/llms-full.txt)
