a:shape3d (3D Shape)
Describes the geometry or transform structure used by a:shape3d in DrawingML content..
Description
a:shape3d is a DrawingML or SVG namespace element used to describe a specific part of a shape, text run, theme, or graphic. In the ECMA-376 DrawingML model, it participates in the XML content tree that defines visual appearance, geometry, and formatting for OOXML content.
The element is commonly encountered in presentation, document, and spreadsheet packages where shapes, charts, pictures, or text boxes are serialized as Open XML. The examples below illustrate a typical usage pattern and a corresponding Open XML SDK implementation.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
z |
ST_Coordinate | integer | Depth of the shape. |
extrusionH |
ST_Coordinate | integer | Extrusion height. |
contourW |
ST_Coordinate | integer | Contour width. |
contourH |
ST_Coordinate | integer | Contour height. |
XML Example
<a:shape3d z="100000" extrusionH="250000" contourW="20000" contourH="20000"/>
using System.Xml.Linq;
XNamespace a = "http://schemas.openxmlformats.org/drawingml/2006/main";
var shape3d = new XElement(a + "shape3d",
new XAttribute("z", "100000"),
new XAttribute("extrusionH", "250000"),
new XAttribute("contourW", "20000"),
new XAttribute("contourH", "20000")
);
Console.WriteLine(shape3d);
Notes
- The permitted child elements and attribute values depend on the surrounding OOXML part and the schema version in use.
- In practice, DrawingML content is usually generated from higher-level shape or picture APIs rather than built manually element-by-element.
- When this element appears inside a document package, it is typically linked by relationships or contained in a drawing part that is referenced from a shape or graphic object.