Freigeben über


TwoCellAnchor-Klasse

Two Cell Anchor Shape Size.

Vererbungshierarchie

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

'Declaration
<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
'Usage
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

Hinweise

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. Ausgabe]

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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

TwoCellAnchor-Member

DocumentFormat.OpenXml.Drawing.Spreadsheet-Namespace