Skip to main content

TextOptions(HorzAlignment, VertAlignment, WordWrap, Trimming) 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.v24.1.dll

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

Declaration

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

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.

See Also