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

LayoutControl.OptionsItemText Property

Provides access to the default alignment settings of the controls displayed in the LayoutControl.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Options")]
public OptionsItemText OptionsItemText { get; }

#Property Value

Type Description
OptionsItemText

An OptionsItemText object that provides the alignment options.

#Remarks

This class contains settings that specify how the controls displayed within the LayoutControl are aligned and the text regions of layout items are resized.

The main property which controls the default alignment settings within the LayoutControl is OptionsItemText.TextAlignMode. It allows you to specify whether the controls must be aligned globally throughout the LayoutControl or independently within groups. Additionally, you can enable the text auto-size feature or prevent the size of the text regions from being controlled automatically.

For each layout group and item you can override the default alignment settings exposed by the LayoutControl. Use the group’s OptionsItemTextGroup.TextAlignMode and item’s LayoutControlItem.TextAlignMode properties to do this.

See Also