Back to Devexpress

ShapeText.AutoSize Property

officefileapi-devexpress-dot-spreadsheet-dot-shapetext-1af4911a.md

latest1.7 KB
Original Source

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.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
ShapeTextAutoSizeType AutoSize { get; set; }
vb
Property AutoSize As ShapeTextAutoSizeType

Property Value

TypeDescription
ShapeTextAutoSizeType

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

|

Available values:

NameDescription
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

ShapeText Interface

ShapeText Members

DevExpress.Spreadsheet Namespace