windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemspinedit-b477d0dd.md
Gets the default horizontal alignment of the editor contents when the editor works inplace within a container control.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
public override HorzAlignment DefaultAlignment { get; }
<Browsable(False)>
Public Overrides ReadOnly Property DefaultAlignment As HorzAlignment
| Type | Description |
|---|---|
| HorzAlignment |
A HorzAlignment enumeration member specifying the default horizontal alignment of the editor’s contents.
|
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.
|
The DefaultAlignment property overrides the base class property to specify the default horizontal alignment of the text displayed within the editor’s edit region when the editor is used inplace within a container control (XtraGrid, for instance). The property is set to a HorzAlignment.Far value.
For standalone editors, the DefaultAlignment is not used and text alignment is controlled by the editor’s style settings (accessed using the RepositoryItem.Appearance property).
See Also