Compartir a través de


TemporarySdt Class

Remove Structured Document Tag When Contents Are Edited.When the object is serialized out as xml, its qualified name is w:temporary.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.TemporarySdt

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

Syntax

'Declaración
Public Class TemporarySdt _
    Inherits OnOffType
'Uso
Dim instance As TemporarySdt
public class TemporarySdt : OnOffType

Remarks

[ISO/IEC 29500-1 1ª edición]

17.5.2.43 temporary (Remove Structured Document Tag When Contents Are Edited)

This element specifies whether the parent structured document tag shall be removed from the WordprocessingML document when the its contents are modified.

[Note: This setting is primarily intended for creating structured document tags whose sole purpose is one-time placeholder text, and which should not return once replaced with content. end note]

If this element is omitted, then the parent structured document tag shall not be automatically removed when its contents are modified.

[Example: Consider the following plain text structured document tag:

<w:sdt>
<w:sdtPr>
<w:temporary/>
<w:text/>
</w:sdtPr>
…
</w:sdt>

This plain text structured document tag's properties contain a temporary element, specifying that the structured document tag itself must be deleted from the document whenever its contents are first modified. end example]

Parent Elements

sdtPr (§17.5.2.38)

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

© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.

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

Reference

TemporarySdt Members

DocumentFormat.OpenXml.Wordprocessing Namespace