Skip to main content
Row

ShapeText.AutoSize Property

Gets or sets a value indicating whether a shape or its text should be resized to fit the text within the shape’s bounds.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

ShapeTextAutoSizeType AutoSize { get; set; }

Property Value

Type Description
ShapeTextAutoSizeType

A ShapeTextAutoSizeType enumeration member that specifies the auto-size mode.

Available values:

Name Description
None

No auto-size applied.

Normal

Text is scaled to fit the shape.

Shape

A shape is resized to fit the text.

Automatic

Auto-size mode is defined automatically.

Remarks

Note

The AutoSize property is ignored when a workbook is displayed in the SpreadsheetControl. However, you can set this property in code and save its value to a file for further processing in Microsoft Excel or another spreadsheet application.

See Also