# SectionFormat Object

> Represents the formatting attributes of a section.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 26.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > SectionFormat Object
- **1408 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/llms-full.txt

---

### Description

Represents the formatting attributes of a section.

### Syntax

```javascript
SectionFormat
```

### Examples

The following example demonstrates `SectionFormat` in a practical document-editing workflow. It represents the formatting attributes of a section.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectSectionFormat(sectionFormat) {
    sectionFormat.getBreakKind(
        function(breakKind) {
            if (!breakKind) {
                console.warn("No section break kind was returned.");
                return;
            }
            
            console.log("get break kind result:", breakKind);
        },
        onTxError
    );
}
```

---

## In This Section

- [Javascript: SectionFormat.Attribute Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/attribute-enumeration/llms-full.txt): Determines a certain section format attribute.
- [Javascript: SectionFormat.getBreakKind Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getbreakkind-method/llms-full.txt): Gets the kind of the section break the section starts with.
- [Javascript: SectionFormat.getColumnDistances Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getcolumndistances-method/llms-full.txt): Gets the distances, in twips, between the columns on a page.
- [Javascript: SectionFormat.getColumnLineColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getcolumnlinecolor-method/llms-full.txt): Gets the color of a dividing line between two columns.
- [Javascript: SectionFormat.getColumnLineWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getcolumnlinewidth-method/llms-full.txt): Gets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.
- [Javascript: SectionFormat.getColumns Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getcolumns-method/llms-full.txt): Gets the number of columns on a page.
- [Javascript: SectionFormat.getColumnWidths Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getcolumnwidths-method/llms-full.txt): Gets the widths, in twips, of the columns on a page.
- [Javascript: SectionFormat.getEqualColumnWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getequalcolumnwidth-method/llms-full.txt): Gets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.
- [Javascript: SectionFormat.getLandscape Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getlandscape-method/llms-full.txt): Gets a value indicating whether the section's page size is in landscape orientation.
- [Javascript: SectionFormat.getRestartPageNumbering Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/getrestartpagenumbering-method/llms-full.txt): Gets a value indicating whether page numbering is restarted at the section's beginning.
- [Javascript: SectionFormat.pageBorder Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/pageborder-property/llms-full.txt): Gets the attributes of a section's page border.
- [Javascript: SectionFormat.pageMargins Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/pagemargins-property/llms-full.txt): Gets the section's page margins.
- [Javascript: SectionFormat.pageSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/pagesize-property/llms-full.txt): Gets the section's page size.
- [Javascript: SectionFormat.setBreakKind Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setbreakkind-method/llms-full.txt): Sets the kind of the section break the section starts with.
- [Javascript: SectionFormat.setColumnLineColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setcolumnlinecolor-method/llms-full.txt): Sets the color of a dividing line between two columns.
- [Javascript: SectionFormat.setColumnLineWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setcolumnlinewidth-method/llms-full.txt): Sets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.
- [Javascript: SectionFormat.setColumns Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setcolumns-method/llms-full.txt): Sets the number of columns on a page.
- [Javascript: SectionFormat.setColumnWidths Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setcolumnwidths-method/llms-full.txt): Sets the widths, in twips, of the columns on a page.
- [Javascript: SectionFormat.setEqualColumnWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setequalcolumnwidth-method/llms-full.txt): Sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.
- [Javascript: SectionFormat.setLandscape Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setlandscape-method/llms-full.txt): Sets a value indicating whether the section's page size is in landscape orientation.
- [Javascript: SectionFormat.setRestartPageNumbering Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/setrestartpagenumbering-method/llms-full.txt): Sets a value indicating whether page numbering is restarted at the section's beginning.

---

## Nearby

- **Previous:** [Javascript: SectionCollection.getItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/getitem-method/llms-full.txt)
- **Next:** [Javascript: SectionFormat.Attribute Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectionformat/attribute-enumeration/llms-full.txt)
