Skip to main content

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

LabelAutoSizeMode Enum

Lists values that specify how the label is automatically resized to display its entire contents.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public enum LabelAutoSizeMode

#Members

Name Description
Default

In Visual Studio 2002 and 2003, the same as the None option.

In Visual Studio 2005 and more recent versions, the same as the Horizontal option.

None

Disables the auto size mode. An end-user is allowed to change both the label’s width and height.

Horizontal

The label is automatically resized to display its entire contents horizontally. The label’s size depends only on the length of the text and the font settings, the label cannot be resized by an end-user.

Vertical

The label’s height is automatically changed to display its entire contents. In this instance, an end-user can change the label’s width while its height is automatically adjusted to fit the label’s text.

#Related API Members

The following properties accept/return LabelAutoSizeMode values:

#Remarks

The values listed by this enumeration are used to set the LabelControl.AutoSizeMode property.

See Also