Dela via


RichTextContentControl.Tag Property (2007 System)

Gets or sets a string that you want to associate with the RichTextContentControl.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Property Tag As String
'Usage
Dim instance As RichTextContentControl 
Dim value As String 

value = instance.Tag

instance.Tag = value
public string Tag { get; set; }
public:
property String^ Tag {
    String^ get ();
    void set (String^ value);
}
public function get Tag () : String 
public function set Tag (value : String)

Property Value

Type: System.String
A string that you want to associate with the RichTextContentControl.

Remarks

You can use the Tag property to store a string that is associated with the RichTextContentControl while the document is open.

To find a content control by its tag, use the SelectContentControlsByTag method.

.NET Framework Security

See Also

Reference

RichTextContentControl Class

RichTextContentControl Members

Microsoft.Office.Tools.Word Namespace