Skip to main content
A newer version of this page is available. .

RepositoryItem.DefaultAlignment Property

Gets the default horizontal alignment of the editor’s content.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

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

Property Value

Type Description
HorzAlignment

A HorzAlignment enumeration value specifying the editor content’s default horizontal alignment.

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

This property is used by container controls when editors are used inplace. Its return value indicates how values should be aligned within cells. For standalone editors, the text alignment is controlled by the editor’s style settings (i.e. by using the RepositoryItem.Appearance property).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DefaultAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also