TwoCellAnchor Class

Two Cell Anchor Shape Size.

Inheritance Hierarchy

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

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

Syntax

声明
<ChildElementInfoAttribute(GetType(FromMarker))> _
<ChildElementInfoAttribute(GetType(ToMarker))> _
<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 TwoCellAnchor _
    Inherits OpenXmlCompositeElement
用法
Dim instance As TwoCellAnchor
[ChildElementInfoAttribute(typeof(FromMarker))]
[ChildElementInfoAttribute(typeof(ToMarker))]
[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 TwoCellAnchor : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • FromMarker <xdr:from>

  • ToMarker <xdr:to>

  • 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 第 1 个版本]

20.5.2.33 twoCellAnchor (Two Cell Anchor Shape Size)

This element specifies a two cell anchor placeholder for a group, a shape, or a drawing element. It moves with cells and its extents are 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

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

to (Ending Anchor Point)

§20.5.2.32

Attributes

Description

editAs (Positioning and Resizing Behaviors)

Specifies how the DrawingML contents shall be moved and/or resized when the rows and columns between its start and ending anchor (the from and to child elements) are resized, or have additional rows/columns inserted within them, or additional row/columns are added before them. The behaviors are discussed in the simple type referenced below.

If this attribute is omitted, then its default value shall be assumed to be twoCell.

[Example: Consider a drawing defined as follows:

<ws:twoCellAnchor editAs="absolute">
…
</ws:twoCellAnchor>

The editAs attribute has a value of absolute, which specifies that the sizing of this object must not change, instead the anchor locations should be moved as needed to maintain the same size and position. end example]

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

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

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

TwoCellAnchor Members

DocumentFormat.OpenXml.Drawing.Spreadsheet Namespace