<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/FormattingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData17FormattingOptionsV"
  },
  "title" : "FormattingOptions"
}
-->

# FormattingOptions

A set of parameters that indicate how to present the contents of data frame or column types to a printable string.

```
struct FormattingOptions
```

## Topics

### Creating the Options Object

[`init()`](/documentation/TabularData/FormattingOptions/init())

Creates a formatting options instance with default parameters.

[`init(locale: Locale)`](/documentation/TabularData/FormattingOptions/init(locale:))

Creates a formatting options instance with a locale.

[`init(maximumLineWidth: Int, maximumCellWidth: Int, maximumRowCount: Int, includesColumnTypes: Bool)`](/documentation/TabularData/FormattingOptions/init(maximumLineWidth:maximumCellWidth:maximumRowCount:includesColumnTypes:))

Creates a formatting options instance.

### Getting the Properties

[`var dateFormatStyle: Date.FormatStyle`](/documentation/TabularData/FormattingOptions/dateFormatStyle)

The date format style.

[`var floatingPointFormatStyle: FloatingPointFormatStyle<Double>`](/documentation/TabularData/FormattingOptions/floatingPointFormatStyle)

The floating point format style.

[`var includesColumnTypes: Bool`](/documentation/TabularData/FormattingOptions/includesColumnTypes)

A Boolean value that indicates whether the description includes the column types.

[`var integerFormatStyle: IntegerFormatStyle<Int>`](/documentation/TabularData/FormattingOptions/integerFormatStyle)

The integer format style.

[`var locale: Locale`](/documentation/TabularData/FormattingOptions/locale)

The locale.

[`var maximumCellWidth: Int`](/documentation/TabularData/FormattingOptions/maximumCellWidth)

The largest number of characters a description can generate per cell.

[`var maximumLineWidth: Int`](/documentation/TabularData/FormattingOptions/maximumLineWidth)

The largest number of characters a description can generate per line.

[`var maximumRowCount: Int`](/documentation/TabularData/FormattingOptions/maximumRowCount)

The largest number of rows a description can generate.

### Instance Properties

[`var includesRowAndColumnCounts: Bool`](/documentation/TabularData/FormattingOptions/includesRowAndColumnCounts)

A Boolean value that indicates whether the description includes the number of rows and columns.

[`var includesRowIndices: Bool`](/documentation/TabularData/FormattingOptions/includesRowIndices)

A Boolean value that indicates whether the description includes the row indices.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)