Share via


ContentControl.Tag Property

Returns or sets a value to identify a content control. Read/write.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property Tag As String
    Get
    Set
'Usage
Dim instance As ContentControl
Dim value As String

value = instance.Tag

instance.Tag = value
string Tag { get; set; }

Property Value

Type: System.String
String

Remarks

The Tag property is different from the Title property in that a tag is never displayed while a user edits a document. Instead, developers can use it to store a value for programmatic manipulation while the document is opened.

See Also

Reference

ContentControl Interface

ContentControl Members

Microsoft.Office.Interop.Word Namespace