Skip to main content
A newer version of this page is available. .

SpreadsheetColumnBehaviorOptions.AutoFit Property

Gets or sets the document’s capability to adjust the column width to accommodate cell content. This is a dependency property.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v19.2.dll

Declaration

public DocumentCapability AutoFit { get; set; }

Property Value

Type Description
DocumentCapability

A DocumentCapability enumeration value specifying the document’s capability to perform an operation.

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoFit
SpreadsheetBehaviorOptions
.Column.AutoFit

Remarks

Note that when you disable resizing columns (SpreadsheetColumnBehaviorOptions.Resize), the AutoFit command is also disabled. However the AutoFit option remains unchanged.

See Also