Office Core Primary Interop Assembly Reference
CommandBar.NameLocal Property
Returns the name of a built-in command bar as it's displayed in the language version of the container application, or returns or sets the name of a custom command bar.

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

Usage

Visual Basic
Dim commandBar1 AsDim returnValue As String
returnValue = commandBar1.NameLocal

Dim sampleValue As String
commandBar1.NameLocal = sampleValue
Syntax

Visual Basic
Property NameLocal() As String
C#
string NameLocal {get; set;}
C++
property String^ NameLocal{
	String^ get();
	Void set(String^);
}
J#
public System.String get_NameLocal();
public void set_NameLocal(System.String);
JScript
function get NameLocal() : String;
function set NameLocal(String);
Remarks

If you attempt to set this property for a built-in command bar, an error occurs.

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.

If you change the value of the NameLocal property for a custom command bar, the value of Name changes as well, and vice versa.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Page view tracker