Skip to main content

TextOptions.HorzAlignmentToStringAlignment(HorzAlignment) Method

OBSOLETE

Use DevExpress.Data.Utils.AlignmentConverter class

Converts the specified HorzAlignment value to a corresponding StringAlignment value.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use DevExpress.Data.Utils.AlignmentConverter class")]
public static StringAlignment HorzAlignmentToStringAlignment(
    HorzAlignment align
)

Parameters

Name Type Description
align HorzAlignment

A HorzAlignment value that is to be converted.

Returns

Type Description
StringAlignment

A StringAlignment value that corresponds to the specified HorzAlignment value.

Remarks

This method converts the values of the HorzAlignment enumeration to the StringAlignment type as follows:

  • HorzAlignment.Default to Near
  • HorzAlignment.Center to Center
  • HorzAlignment.Near to Near
  • HorzAlignment.Far to Far
See Also