跳到主要内容

VerticalTextAlign

The available text vertical alignment (used to align text in a shape with a placement for text inside it).

Type

Enumeration

Values

  • "top"
  • "center"
  • "bottom"

Example

In this example the inner text for the created shape will be added aligned vertically closer to the shape upper part.

// How to set a vertical position of a text in a shape.

// Move drawing text to the top in the ApiShape object.

drawing.SetVerticalTextAlign("top");