OneCellAnchor Class

One Cell Anchor Shape Size.When the object is serialized out as xml, its qualified name is xdr:oneCellAnchor.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Spreadsheet.OneCellAnchor

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

Syntax

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

Remarks

The following table lists the possible child types:

  • FromMarker <xdr:from>

  • Extent <xdr:ext>

  • Shape <xdr:sp>

  • GroupShape <xdr:grpSp>

  • GraphicFrame <xdr:graphicFrame>

  • ConnectionShape <xdr:cxnSp>

  • Picture <xdr:pic>

  • ContentPart <xdr:contentPart>

  • ClientData <xdr:clientData>

[ISO/IEC 29500-1 1st Edition]

20.5.2.24 oneCellAnchor (One Cell Anchor Shape Size)

This element specifies a one cell anchor placeholder for a group, a shape, or a drawing element. It moves with the cell and its extents is in EMU units.

Parent Elements

wsDr (§20.5.2.35)

Child Elements

Subclause

clientData (Client Data)

§20.5.2.3

contentPart (Content Part)

§20.5.2.12

cxnSp (Connection Shape)

§20.5.2.13

ext (Shape Extent)

§20.5.2.14

from (Starting Anchor Point)

§20.5.2.15

graphicFrame (Graphic Frame)

§20.5.2.16

grpSp (Group Shape)

§20.5.2.17

pic (Picture)

§20.5.2.25

sp (Shape)

§20.5.2.29

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

OneCellAnchor Members

DocumentFormat.OpenXml.Drawing.Spreadsheet Namespace