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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.