Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
TextHorizontalAlignment Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnTextObject Class : TextHorizontalAlignment Property





Gets or sets a value that indicates the text horizontal alignment. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property TextHorizontalAlignment As AnnTextAlignment
Visual Basic (Usage)Copy Code
Dim instance As AnnTextObject
Dim value As AnnTextAlignment
 
instance.TextHorizontalAlignment = value
 
value = instance.TextHorizontalAlignment
C# 
public AnnTextAlignment TextHorizontalAlignment {get; set;}
C++/CLI 
public:
property AnnTextAlignment TextHorizontalAlignment {
   AnnTextAlignment get();
   void set (AnnTextAlignment value);
}
XAML Syntax 
For XAML information, see the Leadtools.Windows.Annotations.AnnTextAlignment type.

Dependencies Property Information 

Identifier field

TextHorizontalAlignmentProperty

Metadata properties set to true

AffectsMeasure, AffectsRender

XAML Syntax 
For XAML information, see the Leadtools.Windows.Annotations.AnnTextAlignment type.

Dependencies Property Information 

Identifier field

TextHorizontalAlignmentProperty

Metadata properties set to true

AffectsMeasure, AffectsRender

Return Value

A AnnTextAlignment value that specifies the text horizontal alignment.

Example

For XAML example, refer to AnnGroupObject.

For C#/VB examples, refer to AnnTextObject.

Remarks

This is the horizontal alignment of the text inside the AnnRectangleObject.Left, AnnRectangleObject.Top, Width and Height bounding rectangle. To set the vertical alignment or the text inside the bounding rectangle, use the TextVerticalAlignment property.
For more information, refer to Using Text in WPF Annotation Objects.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

TextHorizontalAlignment requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.