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(HorzAlignment, VertAlignment, WordWrap, Trimming) Constructor

In This Article

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.2.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