This documentation is archived and is not being maintained.

LocalizedName Property

Visual Studio .NET 2003

Returns the localized name of the command.

[Visual Basic .NET]
Public ReadOnly Property LocalizedName() As String
[Visual Basic 6]
Property Get LocalizedName() As String
HRESULT __stdcall get_LocalizedName(
   /* [out, retval] */ BSTR* retVal
public string LocalizedName {get;}
[JScript .NET]
public function get LocalizedName() : String


Sub LocalizedNameExample()
   ' Before running, you must add a reference to the Office 
   ' typelib to gain access to the CommandBar object.
   Dim cmds As Commands
   Dim cmdobj As Command
   Dim customin, customout As Object
   Dim colAddins As AddIns

   ' Set references.
   colAddins = DTE.AddIns()
   cmds = DTE.Commands
   cmdobj = cmds.Item("File.NewFile")

   ' List some of the command properties.
   MsgBox("Command Name: " & cmdobj.Name)
   MsgBox("Is Command Available?: " & cmdobj.IsAvailable)
   MsgBox("Localized name: " & cmdobj.LocalizedName)
   MsgBox("Command ID: " & cmdobj.ID)
   MsgBox("Command GUID: " & cmdobj.Guid)
End Sub

See Also

Applies To:Command Object