Type Attribute | Internet Development Index |
Defines a reference to the ID of a ShapeType element. Read/write String.
Applies To
Tag Syntax
<v:element type="expression">
Script Syntax
element.type="#expression"
expression=element.type
Remarks
If the Type attribute references the ID of a ShapeType element, the fills, paths, and strokes of the ShapeType are used as templates to create the shape. Values derived from ShapeType can be overridden by individual shape values.
If used in tags, the string value must begin with a number sign (#) symbol.
VML Standard Attribute
Example
A ShapeType shape is created with the "mytype" as an ID.
<v:shapetype id="mytype" fillcolor="red" strokecolor="blue" coordorigin="0 0" coordsize="200 200"> <v:path v="m 0,0 l 0,200, 200,200, 200,0 x e"/> </v:shapetype>
Then if you create a shape using the ShapeType values, the shape will have the attributes of the "mytype" ShapeType; that is, "shape01" will have a red fill with a blue stroke.
<v:shape id="shape01" type="#mytype" style="position:relative;top:1;left:1;width:20;height:20"> </v:shape>
You can override the inherited values, for example, by changing the color to green.
<v:shape id="shape02" type="#mytype" fillcolor="green" style="position:relative;top:1;left:1;width:20;height:20"> </v:shape>
Type Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
南部县| 大渡口区| 广河县| 遂川县| 溆浦县| 常熟市| 于田县| 拜泉县| 安图县| 来安县| 常德市| 秀山| 修武县| 涪陵区| 潮安县| 隆安县| 平武县| 山西省| 荣成市| 荔浦县| 潞城市| 泸溪县| 东光县| 徐闻县| 古交市| 双鸭山市| 玛纳斯县| 新和县| 林甸县| 普安县| 临湘市| 中江县| 广饶县| 澳门| 察隅县| 青田县| 襄城县| 涡阳县| 榆社县| 仁化县| 梅州市|