# InputFormat.StructureLevel Property

> Gets or sets the structure level of all selected paragraphs. The level can be between 0 and 10. A level of 0 indicates that the paragraph belongs to the body of the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **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 > InputFormat.StructureLevel Property
- **599 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputformat/structurelevel-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputformat/structurelevel-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputformat/structurelevel-property/llms-full.txt

---

### Description

Gets or sets the structure level of all selected paragraphs. The level can be between 0 and 10. A level of 0 indicates that the paragraph belongs to the body of the document.

### Syntax

```csharp
public int? StructureLevel { get; set; }
```

```vbnet
Public Property StructureLevel As Integer?
```

### Examples

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

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

inputFormat.StructureLevel = 10;
if (inputFormat.StructureLevel != null)
{
    Console.WriteLine("Input Format: Structure Level is available.");
}
```

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

inputFormat.StructureLevel = 10
If inputFormat.StructureLevel IsNot Nothing Then
    Console.WriteLine("Input Format: Structure Level is available.")
End If
```

### Remarks

The property returns null when the text selection contains multiple paragraphs with different structure levels.

---

## Nearby

- **Previous:** [InputFormat.StructuredListFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputformat/structuredlistformat-property/llms-full.txt)
- **Next:** [InputFormat.StyleName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputformat/stylename-property/llms-full.txt)
