Click or drag to resize

TextHorizontalAlignment Enumeration

Horizontal location of text attach point relative to text

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public enum TextHorizontalAlignment
Members
  Member nameValueDescription
Left0 Attach at left of text lines (Independent of glyphs being displayed.)
Center1 Attach point at center of text horizontal advance (not glyph bounding box)
Right2 Attach point at right text horizontal advance (not glyph bounding box)
Auto3 Used for Leaders only Attach point adjusts to Right or Left depending on leader tail direction in view If tail direction is to the Left, alignment is Right If tail direction is to the Right, alignment is Left
Justify4 Stretch each line to fill the wrap rectangle width by distributing slack across word gaps. Only meaningful when text wrapping is enabled and a non-zero wrap width is set; with wrapping off, behaves as Left. The final line of a paragraph (or any line ending in a hard break) is rendered Left.
See Also