officefileapi-devexpress-dot-spreadsheet-dot-shapetext-1af4911a.md
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.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
ShapeTextAutoSizeType AutoSize { get; set; }
Property AutoSize As ShapeTextAutoSizeType
| 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.
|
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