a:grpSpLocks (Group Shape Locks)
Describes the shape-level structure used by a:grpSpLocks in DrawingML drawing objects..
Description
a:grpSpLocks 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 | |
|---|---|---|---|---|
noGrp |
boolean | 0 | 1 | Disables grouping operations. |
noUngrp |
boolean | 0 | 1 | Disables ungrouping. |
noSelect |
boolean | 0 | 1 | Disables selection. |
noRot |
boolean | 0 | 1 | Disables rotation. |
noChangeAspect |
boolean | 0 | 1 | Disables aspect ratio changes. |
noMove |
boolean | 0 | 1 | Disables moving the group. |
noResize |
boolean | 0 | 1 | Disables resizing the group. |
XML Example
<a:grpSpLocks noGrp="1" noUngrp="1" noSelect="1" noRotate="1"/>
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Drawing;
var element = new OpenXmlElement();
// Replace with the specific SDK type required for this element.
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.