Table of Contents

Method WithAlignment

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

WithAlignment(TextHorizontalAlignment)

Creates new text format which is a clone of this object but with new horizontal alignment specified in the horizontalAlignment.

public virtual TextFormat WithAlignment(TextHorizontalAlignment horizontalAlignment)

Parameters

horizontalAlignment TextHorizontalAlignment

Horizontal text alignment property of the created text format.

Returns

TextFormat