Поделиться через


Transform2D Class

Defines the Transform2D Class.When the object is serialized out as xml, its qualified name is a:xfrm.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Transform2D

Namespace:  DocumentFormat.OpenXml.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Extents))> _
<ChildElementInfoAttribute(GetType(Offset))> _
Public Class Transform2D _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Transform2D
[ChildElementInfoAttribute(typeof(Extents))]
[ChildElementInfoAttribute(typeof(Offset))]
public class Transform2D : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Offset <a:off>

  • Extents <a:ext>

[ISO/IEC 29500-1 1st Edition]

20.1.7.6 xfrm (2D Transform for Individual Objects)

This element represents 2-D transforms for ordinary shapes.

Parent Elements

graphicFrame (§20.1.2.2.18); spPr (§21.2.2.197); spPr (§21.3.2.23); spPr (§21.4.3.7); spPr (§20.1.2.2.35); spPr (§20.2.2.6); spPr (§20.5.2.30); spPr (§19.3.1.44); txSp (§20.1.2.2.41)

Child Elements

Subclause

ext (Extents)

§20.1.7.3

off (Offset)

§20.1.7.4

Attributes

Description

flipH (Horizontal Flip)

Specifies a horizontal flip. When true, this attribute defines that the shape is flipped horizontally about the center of its bounding box.

[Example: The following illustrates the effect of a horizontal flip.

DocumentFormat.OpenXml.Drawing.Transform2D-image00

end example]

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

flipV (Vertical Flip)

Specifies a vertical flip. When true, this attribute defines that the group is flipped vertically about the center of its bounding box.[Example: The following illustrates the effect of a vertical flip.

DocumentFormat.OpenXml.Drawing.Transform2D-image00

end example]

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

rot (Rotation)

Specifies the rotation of the Graphic Frame. The units for which this attribute is specified in reside within the simple type definition referenced below.

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

[Note: The W3C XML Schema definition of this element’s content model (CT_Transform2D) is located in §A.4.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Transform2D Members

DocumentFormat.OpenXml.Drawing Namespace