# ListFormat.FormatCharacter Property

> Gets or sets the formatting character for a bulleted or numbered list.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > ListFormat.FormatCharacter Property
- **671 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/formatcharacter-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/formatcharacter-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/formatcharacter-property/llms-full.txt

---

### Description

Gets or sets the formatting character for a bulleted or numbered list.

### Syntax

```csharp
public ListFormatCharacter FormatCharacter { get; set; }
```

```vbnet
Public Property FormatCharacter As ListFormatCharacter
```

### Members

| Value | Description |
|---|---|
| Tab | The text of the list follows the bullet or number character at the next tab position. |
| Space | The text of the list follows the bullet or number character separated through a space character. |
| None | The text of the list immediately follows the bullet or number character. |

### Examples

The following example applies `FormatCharacter` while converting three selected paragraphs into a usable numbered list.

```csharp
textControl.Text = "Research\nDraft\nReview";
textControl.Select(0, textControl.Text.Length);

ListFormat listFormat = new()
{
    Type = ListType.Numbered,
    FormatCharacter = ListFormatCharacter.Space
};
textControl.Selection.ListFormat = listFormat;
```

```vbnet
textControl.Text = "Research" & vbCrLf & "Draft" & vbCrLf & "Review"
textControl.Select(0, textControl.Text.Length)

Dim listFormat As New ListFormat() With {
    .Type = ListType.Numbered,
    .FormatCharacter = ListFormatCharacter.Space
}
textControl.Selection.ListFormat = listFormat
```

### Remarks

The property's default value is ListFormatCharacter.Tab.

The property returns its default value when the text selection contains multiple paragraphs with mixed formatting characters or when the text selection does not contain a bulleted or a numbered list. The [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

- **Previous:** [ListFormat.FontName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/fontname-property/llms-full.txt)
- **Next:** [ListFormat.HangingIndent Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/hangingindent-property/llms-full.txt)
