This document is archived and information here might be outdated.  Recommended version.


ITextSymbol.HorizontalAlignment Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

ITextSymbol.HorizontalAlignment Property

Horizontal alignment style.

[Visual Basic .NET]
Public Property HorizontalAlignment As esriTextHorizontalAlignment
[C#]
public esriTextHorizontalAlignment HorizontalAlignment {get; set;}
[C++]
HRESULT get_HorizontalAlignment(
  esriTextHorizontalAlignment* horizAlignment
);
[C++]
HRESULT put_HorizontalAlignment(
  esriTextHorizontalAlignment horizAlignment
);
[C++]

Parameters horizAlignment [out, retval]
horizAlignment is a parameter of type esriTextHorizontalAlignment horizAlignment [in]
horizAlignment is a parameter of type esriTextHorizontalAlignment

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

HorizontalAlignment is the horizontal alignment that will be applied to text that contains multiple lines. There are four options: esriTHACenter , esriTHAFull , esriTHALeft , and esriTHARight . The default option is esriTHALeft .

See Also

ITextSymbol Interface

.NET Samples

Creating a toolbar of globe tools (Code Files: TextElement) | Play back tracking data (Code Files: PlaybackDataButton)