# ListFormat Constructor

> Creates a new instance of the ListFormat class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **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 Constructor
- **785 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/constructor/llms-full.txt

---

### Description

Creates a new instance of the ListFormat class.

### Syntax

#### ListFormat()

Creates a new empty instance of the ListFormat class.

```csharp
public ListFormat();
```

```vbnet
Public Sub New()
```

#### ListFormat(ListType)

Creates a new instance of the ListFormat class which has the specified list type.

```csharp
public ListFormat(ListType type);
```

```vbnet
Public Sub New(type As ListType)
```

| Parameter | Description |
|---|---|
| type | Specifies one of the [ListType](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listtype/enumeration/llms-full.txt) values. The following values are possible:  \| Value \| Meaning \| \| None \| The text is neither a bulleted nor a numbered list. \| \| Bulleted \| The list is a bulleted list. \| \| Numbered \| The list is a numbered list. \| \| Structured \| The list is a structured list. All numbers of higher levels (lower level numbers) are displayed in front of the list number. The additional text of all levels in front and behind the list numbers is also displayed. \| |
|---|

### Examples

The following example creates a numbered-list format and applies it to three selected action items.

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

ListFormat listFormat = new()
{
    Type = ListType.Numbered,
    NumberFormat = NumberFormat.ArabicNumbers
};
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,
    .NumberFormat = NumberFormat.ArabicNumbers
}
textControl.Selection.ListFormat = listFormat
```

---

## Nearby

- **Previous:** [ListFormat.CharBeforeNumber Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/charbeforenumber-property/llms-full.txt)
- **Next:** [ListFormat.FirstNumber Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/listformat/firstnumber-property/llms-full.txt)
