Share via


CommandBarControl.Tag Property

Returns or sets information about the command bar control, such as data that can be used as an argument in procedures, or information that identifies the control.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

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

value = instance.Tag

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

Property Value

Type: System.String

Remarks

To avoid duplicate calls of the same class when triggered with events, define the Tag property unique to the events.

See Also

Reference

CommandBarControl Interface

CommandBarControl Members

Microsoft.Office.Core Namespace