Freigeben über


Shape-Klasse

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

Vererbungshierarchie

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

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

Syntax

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

Hinweise

The following table lists the possible child types:

  • NonVisualShapeProperties <p:nvSpPr>

  • ShapeProperties <p:spPr>

  • ShapeStyle <p:style>

  • TextBody <p:txBody>

  • ExtensionListWithModification <p:extLst>

[ISO/IEC 29500-1 1. Ausgabe]

19.3.1.43 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 (§19.3.1.22); spTree (§19.3.1.45)

Child Elements

Subclause

extLst (Extension List with Modification Flag)

§19.3.1.20

nvSpPr (Non-Visual Properties for a Shape)

§19.3.1.34

spPr (Shape Properties)

§19.3.1.44

style (Shape Style)

§19.3.1.46

txBody (Shape Text Body)

§19.3.1.51

Attributes

Description

useBgFill (Use Background Fill)

Specifies that the shape fill should be set to that of the slide background surface.

[Note: This attribute does not set the fill of the shape to be transparent but instead sets it to be filled with the portion of the slide background that is directly behind it. end note]

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

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