Share via


_CommandBarButton.Tag Property

Returns or sets the 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 _CommandBarButton
Dim value As String

value = instance.Tag

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

Property Value

Type: System.String

Implements

CommandBarControl.Tag

Remarks

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

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Tag Overload

Microsoft.Office.Core Namespace