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.v20.1.dll

Declaration

public DocumentCapability AutoFit { get; set; }
Public Property AutoFit As DocumentCapability

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
SpreadsheetControl
SpreadsheetControlOptions
.Behavior.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