Partager via


RelativeAnchorSize Class

Relative Anchor Shape Size.When the object is serialized out as xml, its qualified name is cdr:relSizeAnchor.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ChartDrawing.RelativeAnchorSize

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ConnectionShape))> _
<ChildElementInfoAttribute(GetType(ToAnchor))> _
<ChildElementInfoAttribute(GetType(GroupShape))> _
<ChildElementInfoAttribute(GetType(GraphicFrame))> _
<ChildElementInfoAttribute(GetType(FromAnchor))> _
<ChildElementInfoAttribute(GetType(Picture))> _
<ChildElementInfoAttribute(GetType(ContentPart), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Shape))> _
Public Class RelativeAnchorSize _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As RelativeAnchorSize
[ChildElementInfoAttribute(typeof(ConnectionShape))]
[ChildElementInfoAttribute(typeof(ToAnchor))]
[ChildElementInfoAttribute(typeof(GroupShape))]
[ChildElementInfoAttribute(typeof(GraphicFrame))]
[ChildElementInfoAttribute(typeof(FromAnchor))]
[ChildElementInfoAttribute(typeof(Picture))]
[ChildElementInfoAttribute(typeof(ContentPart), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Shape))]
public class RelativeAnchorSize : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • FromAnchor <cdr:from>

  • ToAnchor <cdr:to>

  • Shape <cdr:sp>

  • GroupShape <cdr:grpSp>

  • GraphicFrame <cdr:graphicFrame>

  • ConnectionShape <cdr:cxnSp>

  • Picture <cdr:pic>

  • DocumentFormat.OpenXml.Office2010.Drawing.ChartDrawing.ContentPart <cdr14:contentPart>

[ISO/IEC 29500-1 1st Edition]

21.3.2.21 relSizeAnchor (Relative Anchor Shape Size)

This element specifies that the shape described here to reside within a chart should be sized based on relative anchor points. This is achieved via two elements. The from element specifies the top left corner of the shape bounding box in a RTL(right-to-left) implementation. The to element then specifies the bottom right corner of the shape bounding box in a RTL(right-to-left) implementation and thus the size of the shape.

Parent Elements

userShapes (§21.2.2.220)

Child Elements

Subclause

cxnSp (Connection Shape)

§21.3.2.9

from (Starting Anchor Point)

§21.3.2.11

graphicFrame (Graphic Frame)

§21.3.2.12

grpSp (Group Shape)

§21.3.2.13

pic (Picture)

§21.3.2.20

sp (Shape)

§21.3.2.22

to (Ending Anchor Point)

§21.3.2.25

[Note: The W3C XML Schema definition of this element’s content model (CT_RelSizeAnchor) is located in §A.5.2. 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

RelativeAnchorSize Members

DocumentFormat.OpenXml.Drawing.ChartDrawing Namespace