V Attribute

HTML (DHTML)

V Attribute

Internet Development Index

Defines the commands that make up a path. Read/write String.

Applies To

Path

Tag Syntax

<v: element v="expression">

Script Syntax

element.v="expression"

expression=element.v

Remarks

Overrides the Path attribute of a shape. Coordinates can be fixed numbers, relative numbers, or references to formulas (by using the format of "@n" where n is a formula number; for example, "@2" refers to the second formula in the formula array).

VML Standard Attribute

Example

A rectangle is created using the V attribute. Note that a lowercase letter L (lineto command) is used after the first set of comma-delimited coordinates.

   <v:shape id="rect01"
   coordorigin="0 0" coordsize="200 200"
   strokecolor="red"
   style="top:1;left:1;width:50;height:50">
   <v:path id= "myPath" v="m 1,1 l 1,200, 200,200, 200,1 x e"/>
   </v:shape>