# Section.Format Property

> Gets or sets the section's formatting attributes. The property's value is an object of the type SectionFormat which defines the page size and the page margins.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 14.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 > Section.Format Property
- **336 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/format-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/format-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/format-property/llms-full.txt

---

### Description

Gets or sets the section's formatting attributes. The property's value is an object of the type [SectionFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/llms-full.txt) which defines the page size and the page margins.

### Syntax

```csharp
public SectionFormat Format { get; set; }
```

```vbnet
Public Property Format As SectionFormat
```

### Examples

The following example works with the first section of the current document by using `Section.Format`.

```csharp
Section section = textControl.Sections[1];

section.Format = new SectionFormat();
section.Select();
```

```vbnet
Dim section As Section = textControl.Sections(1)

section.Format = New SectionFormat()
section.Select()
```

---

## Nearby

- **Previous:** [Section Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/llms-full.txt)
- **Next:** [Section.HeadersAndFooters Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/headersandfooters-property/llms-full.txt)
