ArcObjects Library Reference (Display)  

ITextSymbol.HorizontalAlignment Property

Horizontal alignment style.

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


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.


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)