Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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