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

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

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#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