CommandBar.Name Property
Returns or sets the name of the specified object.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Property Name As String
Get
Set
'Usage
Dim instance As CommandBar
Dim value As String
value = instance.Name
instance.Name = value
string Name { get; set; }
Property Value
Type: System.String
Remarks
The local name of a built-in command bar is displayed in the title bar (when the command bar isn't docked) and in the list of available command bars— wherever that list is displayed in the container application.
For a built-in command bar, the Name property returns the command bar's U.S. English name. Use the NameLocal property to return the localized name.
If you change the value of the NameLocal property for a custom command bar, the value of Name changes as well, and vice versa.