Freigeben über


Shape-Klasse

Shape.When the object is serialized out as xml, its qualified name is a:sp.

Vererbungshierarchie

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(NonVisualShapeProperties))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(ShapeProperties))> _
<ChildElementInfoAttribute(GetType(TextShape))> _
<ChildElementInfoAttribute(GetType(ShapeStyle))> _
Public Class Shape _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Shape
[ChildElementInfoAttribute(typeof(NonVisualShapeProperties))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(ShapeProperties))]
[ChildElementInfoAttribute(typeof(TextShape))]
[ChildElementInfoAttribute(typeof(ShapeStyle))]
public class Shape : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • NonVisualShapeProperties <a:nvSpPr>

  • ShapeProperties <a:spPr>

  • TextShape <a:txSp>

  • ShapeStyle <a:style>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

20.1.2.2.33 sp (Shape)

This element specifies the existence of a single shape. A shape can either be a preset or a custom geometry, defined using the DrawingML framework. In addition to a geometry each shape can have both visual and non-visual properties attached. Text and corresponding styling information can also be attached to a shape. This shape is specified along with all other shapes within either the shape tree or group shape elements.

[Note: Shapes are the preferred mechanism for specifying text on a slide. end note]

Parent Elements

grpSp (§20.1.2.2.20); lockedCanvas (§20.3.2.1)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

nvSpPr (Non-Visual Properties for a Shape)

§20.1.2.2.29

spPr (Shape Properties)

§20.1.2.2.35

style (Shape Style)

§20.1.2.2.37

txSp (Text Shape)

§20.1.2.2.41

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

Shape-Member

DocumentFormat.OpenXml.Drawing-Namespace