UnhideWhenUsed Class

Remove Semi-Hidden Property When Style Is Used.When the object is serialized out as xml, its qualified name is w:unhideWhenUsed.

Inheritance Hierarchy


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


Public Class UnhideWhenUsed _
    Inherits OnOffOnlyType
Dim instance As UnhideWhenUsed
public class UnhideWhenUsed : OnOffOnlyType


[ISO/IEC 29500-1 1st Edition] unhideWhenUsed (Remove Semi-Hidden Property When Style Is Used)

This element specifies whether the semiHidden property (§ shall be removed when this style is used by the content of the document. If this element is set, then an application shall ensure that even if the semiHidden element is specified on a style, that this property is removed when the document is resaved if the style is referenced by any content in the document.

If this element is omitted, then the style shall not automatically lose the semi-hidden property when it is used in the document contents.

[Example: Consider a style with a primary name of Test Paragraph Style that should not be displayed in the main user interface until it is used. This requirement would be specified using the following WordprocessingML:

<w:style … w:styleId="TestStyle">
<w:name w:val="Test Paragraph Style"/>

The unhideWhenUsed element specifies that this style definition should not be displayed in any main user interface associated with an application which processes this document until it is referenced by document content. If a paragraph was added to the document which referenced this style:

<w:pStyle w:val="TestStyle"/>

This style is now referenced by the document's contents and would have the semiHidden element removed on save. end example]

Parent Elements

style (§

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

© ISO/IEC29500: 2008.

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.

See Also


UnhideWhenUsed Members

DocumentFormat.OpenXml.Wordprocessing Namespace