Shape Class
Shape.When the object is serialized out as xml, its qualified name is p:sp.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Presentation.Shape
Namespace: DocumentFormat.OpenXml.Presentation
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
<ChildElementInfoAttribute(GetType(NonVisualShapeProperties))> _
<ChildElementInfoAttribute(GetType(ShapeProperties))> _
<ChildElementInfoAttribute(GetType(ShapeStyle))> _
<ChildElementInfoAttribute(GetType(TextBody))> _
<ChildElementInfoAttribute(GetType(ExtensionListWithModification))> _
Public Class Shape _
Inherits OpenXmlCompositeElement
用法
Dim instance As Shape
[ChildElementInfoAttribute(typeof(NonVisualShapeProperties))]
[ChildElementInfoAttribute(typeof(ShapeProperties))]
[ChildElementInfoAttribute(typeof(ShapeStyle))]
[ChildElementInfoAttribute(typeof(TextBody))]
[ChildElementInfoAttribute(typeof(ExtensionListWithModification))]
public class Shape : OpenXmlCompositeElement
Remarks
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 个版本]
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. 以上摘要已经由 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.