ContentPartLocks Class
Defines the ContentPartLocks Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is a14:cpLocks.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Drawing.ContentPartLocks
Namespace: DocumentFormat.OpenXml.Office2010.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class ContentPartLocks _
Inherits OpenXmlCompositeElement
'使用
Dim instance As ContentPartLocks
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class ContentPartLocks : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
- OfficeArtExtensionList <a14:extLst>
2.5.41 CT_ContentPartLocking
Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main
Referenced by: CT_NonVisualInkContentPartProperties
Contains various "locking" properties that prevent or restrict certain changes to the content part properties or restrict how a content part can be manipulated by the user. Restrictions are only enforced at the user interface and Object Model levels.
Child Elements:
extLst : A CT_OfficeArtExtensionList ([ISO/IEC-29500-1] section A.4.1) element that specifies the extension list within which all future extensions of element type ext is defined. The extension list along with corresponding future extensions is used to extend the storage capabilities of the DrawingML framework. This allows for various new types of data to be stored natively within the framework.
Attributes:
noGrp : A boolean attribute that specifies that the generating application should not allow shape grouping for the corresponding content part. That is, it cannot be combined within other shapes to form a group of shapes. If this attribute is not specified, then a value of false is assumed.
noSelect : A boolean attribute that specifies that the generating application should not allow selecting of the corresponding content part. No picture, shapes or text attached to this content part can be selected if this attribute has been specified. If this attribute is not specified, then a value of false is assumed.
noRot : A boolean attribute that specifies that the corresponding content part cannot be rotated. If this attribute is not specified, then a value of false is assumed.
noChangeAspect : A boolean attribute that specifies that the generating application should not allow aspect ratio changes for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
noMove : A boolean attribute that specifies that the generating application should not allow position changes for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
noResize : A boolean attribute that specifies that the generating application should not allow size changes for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
noEditPoints : A boolean attribute that specifies that the generating application should not allow shape point changes for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
noAdjustHandles : A boolean attribute that specifies that the generating application should not show adjust handles for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
noChangeArrowheads : A Boolean attribute that specifies that the generating application should not allow arrowhead changes for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
noChangeShapeType : A boolean attribute that specifies that the generating application should not allow shape type changes for the corresponding content part. If this attribute is not specified, then a value of false is assumed.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_ContentPartLocking">
<xsd:sequence>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attributeGroup ref="a:AG_Locking"/>
</xsd:complexType>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
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.