[Table of Contents] [docx version]

VML Reference Material - VML

skew (Skew Transform)

This element specifies a perspective skew effect on a shape. The skew is applied to vector graphics, not image data on the shape in picture fills or image elements. The on attribute must be true and a valid value assigned to the matrix attribute.

Parent Elements

arc6.1.2.1); background2.2.1); curve6.1.2.3); group6.1.2.7); hdrShapeDefaults2.15.1.50); image6.1.2.10); line6.1.2.12); object2.3.3.19); oval6.1.2.13); pict2.3.3.21); pict2.9.23); polyline6.1.2.15); rect6.1.2.16); roundrect6.1.2.17); shape6.1.2.19); shapedefaults6.2.2.27); shapeDefaults2.15.1.79); shapetype6.1.2.20)

 

Attributes

Description

ext (VML Extension Handling Behavior)

 

Namespace: urn:schemas-microsoft-com:vml

Specifies an optional value that indicates how applications that implement VML should interpret extensions not defined as part of the original specification of core VML.

 

[Rationale: This part of the original VML specification is included to assist applications that leverage existing VML support in implementing the Office Open XML Format. end rationale]

 

The possible values for this attribute are defined by the ST_Ext simple type (§6.1.3.3).

id (Skew ID)

Specifies a name that provides a unique identifier for a skew. Default is no value.

 

The possible values for this attribute are defined by the XML Schema string datatype.

matrix (Skew Perspective Matrix)

Specifies a perspective transform of a skew. Default is "1,0,0,1,0,0".

 

The matrix is given in the form "" where s = scale and p = perspective. If the offset attribute is in absolute units then are in 1/EMU units; otherwise they are an inverse fraction of the shape size.

 

The possible values for this attribute are defined by the XML Schema string datatype.

offset (Skew Offset)

Specifies the amount of x,y offset from the shape’s location. Default is "2pt,2pt". Positive values are measured from the upper left of the face of the shape.

 

Values are specified as either an absolute measurement or a fractional value of the shape's dimensions (–0.5 to +0.5).

 

The possible values for this attribute are defined by the XML Schema string datatype.

on (Skew Toggle)

Specifies whether a skew is displayed. Default is false.

 

The possible values for this attribute are defined by the ST_TrueFalse simple type (§6.2.3.23).

origin (Skew Origin)

Specifies the origin of the skew. Default is "0,0".

 

Values are typically a percentage of the shape's size and range from -0.5 to +0.5. Larger values are allowed that give offsets as multiples of the shape's size.

 

The possible values for this attribute are defined by the XML Schema string datatype.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Skew">

   <attributeGroup ref="v:AG_Ext"/>

   <attribute name="id" type="xsd:string" use="optional"/>

   <attribute name="on" type="ST_TrueFalse" use="optional"/>

   <attribute name="offset" type="xsd:string" use="optional"/>

   <attribute name="origin" type="xsd:string" use="optional"/>

   <attribute name="matrix" type="xsd:string" use="optional"/>

</complexType>