DeletedFieldCode Class

Deleted Field Code.When the object is serialized out as xml, its qualified name is w:delInstrText.

Inheritance Hierarchy


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


Public Class DeletedFieldCode _
    Inherits TextType
Dim instance As DeletedFieldCode
public class DeletedFieldCode : TextType


[ISO/IEC 29500-1 1st Edition]

17.16.8 delInstrText (Deleted Field Code)

This element specifies that this run contains deleted field codes (§17.16.5) within a complex field in the document. The delInstrText element shall be used for all runs containing field codes which are part of a region of text that is contained in a deleted region using the del element (§

If this element is not contained within a del element, then the document is non-conformant. If this element is contained within a run which is not part of a complex field's field codes, then it should be handled as regular deleted text.

[Example: Consider a complex field within a WordprocessingML document which was changed from a text box form field to a checkbox form field with revision tracking enabled. This field would therefore be represented as follows:

<w:fldChar w:fldCharType="begin" />
<w:fldChar w:fldCharType="separate" />
<w:fldChar w:fldCharType="end" />

The deleted field code is contained in a delInstrText node, while the inserted (and current) field code is contained in an instrText node. end example]

Parent Elements

r (§; r (§



xml:space (Content Contains Significant Whitespace)


Specifies how white space should be handled for the contents of this element using the W3C space preservation rules.

[Example: Consider the following run contained within a WordprocessingML document:

<w:t>   significant whitespace   </w:t>

Although there are three spaces on each side of the text content in the run, that whitespace has not been specifically marked as significant, therefore it is subject to the space preservation rules currently specified in that run's scope. end example]

The possible values for this attribute are defined by §2.10 of the XML 1.0 specification.

[Note: The W3C XML Schema definition of this element’s content model (CT_Text) is located in §A.1. end note]

© 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


DeletedFieldCode Members

DocumentFormat.OpenXml.Wordprocessing Namespace