AlignShape Attribute

HTML (DHTML)

AlignShape Attribute

Internet Development Index

Determines whether an image will align with a shape. Read/write VgTriState.

Applies To

Fill

Tag Syntax

<v: element alignshape="expression">

Script Syntax

element.alignshape="expression"

expression=element.alignshape

Remarks

If True, the image used to create the fill is aligned with the shape. If False, the image used to create the fill is aligned with the window. Default is True.

VML Standard Attribute

Example

The tiled fill image created from myimage.gif is aligned with the window, not the shape; even though the shape is rotated, the image is not.

   <v:shape id="rect01"
   coordorigin="0 0" coordsize="200 200"
   strokecolor="red"
   style="top:1;left:1;width:50;height:50;rotation:30"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:fill alignshape="False" type="tile" src="myimage.gif"/>
   </v:shape>