V-Text-Anchor Attribute

Internet Development Index

Defines the vertical anchoring of text in a textbox. Read/write String.

Applies To

TextBox

Tag Syntax

<v: element v-text-anchor="expression">

Remarks

Values include:

The text will be anchored to a vertical position in the textbox as indicated by the attribute value. The alignment of a text anchor only becomes evident if MSO-Fit-Text-To-Shape is False. This attribute is different from the Vertical-Align Style attribute, which is used for ideographic languages.

This attribute is used by Microsoft Office to store data in Web documents but does not render in Microsoft Internet Explorer 5 or greater.

VML Standard Attribute

Example

The text is aligned to the bottom of the textbox.

   <v:shape id="rect01"
   coordorigin="0 0" coordsize="200 200"
   strokecolor="red" fillcolor="red"
   style="top:10pt;left:10pt;width:50pt;height:50pt"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:textbox style="v-text-anchor:bottom" id="mytextbox">
   VML
   </v:textbox/>
   </v:shape>