Skip to main content

TextOptions(HorzAlignment, VertAlignment, WordWrap, Trimming, HKeyPrefix) Constructor

Initializes a new instance of the TextOptions class with the specified alignments, word wrapping and text trimming options.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

public TextOptions(
    HorzAlignment hAlignment,
    VertAlignment vAlignment,
    WordWrap wordWrap,
    Trimming trimming,
    HKeyPrefix hotKeyPrefix
)

Parameters

Name Type Description
hAlignment HorzAlignment

A HorzAlignment value that specifies the horizontal alignment of text. This value is assigned to the TextOptions.HAlignment property.

vAlignment VertAlignment

A HorzAlignment value that specifies the vertical alignment of text. This value is assigned to the TextOptions.VAlignment property.

wordWrap WordWrap

A WordWrap value that specifies word wrapping mode. This value is assigned to the TextOptions.WordWrap property.

trimming Trimming

A Trimming value that specifies text trimming mode. This value is assigned to the TextOptions.Trimming property.

hotKeyPrefix HKeyPrefix

A HKeyPrefix enumeration value that specifies the hotkey prefix for the text. This value is assigned to the TextOptions.HotkeyPrefix property.

See Also