TextPathOK Attribute

HTML (DHTML)

TextPathOK Attribute

Internet Development Index

Determines whether a text path will be displayed. Read/write VgTriState.

Applies To

Path

Tag Syntax

<v: element textpathok="expression">

Script Syntax

element. textpathok="expression"

expression=element. textpathok

Remarks

If False, the path cannot have a text path. The default is False. You must have this attribute set to True to display text on a path.

VML Standard Attribute

Example

The shape has a text path. The text "Hello VML" is displayed along a smile-shaped curve.

   <v:curve id="tc" style="position:relative"
   from="50px 100px" to="400px 100px"
   control1="200px 200px" control2="300px 200px">
   <v:stroke weight="1pt" color="blue"
   filltype="solid"/>
   <v:fill on="True" color="yellow" color2="green" type="gradient"/>
   <v:path textpathok="True"/>
   <v:textpath on="True" id="mytp"
   style="font:normal normal normal 36pt Arial"
   fitpath="True" string="Hello VML"/>
   </v:curve>