次の方法で共有


OleMenuCommand.Text Property

Gets or sets the text for the command.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Overridable Property Text As String
    Get
    Set
'使用
Dim instance As OleMenuCommand
Dim value As String

value = instance.Text

instance.Text = value
public virtual string Text { get; set; }
public:
virtual property String^ Text {
    String^ get ();
    void set (String^ value);
}
abstract Text : string with get, set
override Text : string with get, set
function get Text () : String
function set Text (value : String)

Property Value

Type: System.String
The text for the command.

Implements

IOleMenuCommand.Text

.NET Framework Security

See Also

Reference

OleMenuCommand Class

OleMenuCommand Members

Microsoft.VisualStudio.Shell Namespace