StyleLockThemesPart class

Office 2013 and later

Prevent Modification of Themes Part. When the object is serialized out as xml, its qualified name is w:styleLockTheme.

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

public class StyleLockThemesPart : OnOffType

[ISO/IEC 29500-1 1st Edition]

styleLockTheme (Prevent Modification of Themes Part)

This element specifies whether applications shall prevent the modification of the document's theme information stored in the Theme part when editing this document. This setting should not preclude the use of the theme information, instead, it should only prevent the modification of the theme part in a single operation (either through a user interface or a programmatic operation).

If this element is omitted, then applications can allow the replacement or modification of the theme part in this document.

[Example: Consider a WordprocessingML document that specifies that applications must prevent the modification of the theme part. This requirement would be specified using the following WordprocessingML in the document settings part:

<w:styleLockTheme w:val="true"/> 

The styleLockTheme element's val attribute has a value of true specifying that theme data must not be modified when modifying the contents of this document. end example]

Parent Elements

settings (§

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.