.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ISpreadsheetComponent.Unit Property

Gets or sets a unit of measure used in the workbook.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll


DocumentUnit Unit { get; set; }

Property Value

Type Description

The DocumentUnit enumeration member. It is expected to be set to the DocumentUnit.Document value by default.


By default, all workbooks loaded in the SpreadsheetControl gets the unit of measurement from the SpreadsheetControl.Unit property value. To specify the unit of measurement for the workbook explicitly, use the SpreadsheetControl.Document.Unit notation.

When the unit of measurement is changed, the ISpreadsheetComponent.UnitChanging and ISpreadsheetComponent.UnitChanged events occur.

See Also