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.v25.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
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.