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

RepositoryItemColorEdit.DefaultAlignment Property

Gets the default alignment of the editor contents when the editor is inplace within a container control.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public override HorzAlignment DefaultAlignment { get; }

#Property Value

Type Description
HorzAlignment

The HorzAlignment.Near value.

Available values:

Name Description
Default

Places an object or text at the default position, which is determined by a control.

Near

Places an object/text at a near position.

Center

Centers an object or text within a region.

Far

Places an object/text at a far position.

#Remarks

The DefaultAlignment property returns the default aligment of the editor contents when it is an inplace control (within XtraGrid, for instance). For standalone editors, DefaultAlignment is not in effect and text alignment is then controlled by the TextOptions.HAlignment property of the RepositoryItem.Appearance object.

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

See Also