370 lines
18 KiB
XML
370 lines
18 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<Type Name="MenuCommand" FullName="System.ComponentModel.Design.MenuCommand">
|
||
|
<TypeSignature Language="C#" Value="public class MenuCommand" Maintainer="auto" />
|
||
|
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MenuCommand extends System.Object" />
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyName>System</AssemblyName>
|
||
|
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
|
||
|
<AssemblyVersion>1.0.3300.0</AssemblyVersion>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||
|
<Base>
|
||
|
<BaseTypeName>System.Object</BaseTypeName>
|
||
|
</Base>
|
||
|
<Interfaces />
|
||
|
<Attributes>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
|
||
|
</Attribute>
|
||
|
</Attributes>
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>The <see cref="T:System.ComponentModel.Design.MenuCommand" /> class represents information about a Windows menu or toolbar command. The <see cref="T:System.ComponentModel.Design.IMenuCommandService" /> interface allows you to add <see cref="T:System.ComponentModel.Design.MenuCommand" /> objects to the Visual Studio menu.</para>
|
||
|
<para>This class provides the following members: </para>
|
||
|
<list type="bullet">
|
||
|
<item>
|
||
|
<para>An event-handler property to which you can attach an event handler for the command.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>A <see cref="T:System.ComponentModel.Design.CommandID" /> property that uniquely identifies the command.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>An <see cref="M:System.ComponentModel.Design.MenuCommand.Invoke" /> method that executes the command.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>An <see cref="M:System.ComponentModel.Design.MenuCommand.OnCommandChanged(System.EventArgs)" /> method that can be overridden to handle the event that occurs when a new command is selected.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>Boolean flag states that indicate whether the command is <see cref="P:System.ComponentModel.Design.MenuCommand.Checked" />, <see cref="P:System.ComponentModel.Design.MenuCommand.Enabled" />, <see cref="P:System.ComponentModel.Design.MenuCommand.Supported" />, or <see cref="P:System.ComponentModel.Design.MenuCommand.Visible" />.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>An <see cref="P:System.ComponentModel.Design.MenuCommand.OleStatus" /> property that indicates the OLE command status code for the command.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>An override for the <see cref="M:System.ComponentModel.Design.MenuCommand.ToString" /> method.</para>
|
||
|
</item>
|
||
|
</list>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Represents a Windows menu or toolbar command item.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
<Members>
|
||
|
<Member MemberName=".ctor">
|
||
|
<MemberSignature Language="C#" Value="public MenuCommand (EventHandler handler, System.ComponentModel.Design.CommandID command);" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.EventHandler handler, class System.ComponentModel.Design.CommandID command) cil managed" />
|
||
|
<MemberType>Constructor</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue />
|
||
|
<Parameters>
|
||
|
<Parameter Name="handler" Type="System.EventHandler" />
|
||
|
<Parameter Name="command" Type="System.ComponentModel.Design.CommandID" />
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.MenuCommand" /> class.</para>
|
||
|
</summary>
|
||
|
<param name="handler">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />The event to raise when the user selects the menu item or toolbar button. </param>
|
||
|
<param name="command">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />The unique command ID that links this menu command to the environment's menu. </param>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Checked">
|
||
|
<MemberSignature Language="C#" Value="public virtual bool Checked { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance bool Checked" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Boolean</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<value>To be added: an object of type 'bool'</value>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets a value indicating whether this menu item is checked.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="CommandChanged">
|
||
|
<MemberSignature Language="C#" Value="public event EventHandler CommandChanged;" />
|
||
|
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler CommandChanged" />
|
||
|
<MemberType>Event</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.EventHandler</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters />
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>A command can change if it becomes checked or disabled.</para>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Occurs when the menu command changes.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="CommandID">
|
||
|
<MemberSignature Language="C#" Value="public virtual System.ComponentModel.Design.CommandID CommandID { get; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance class System.ComponentModel.Design.CommandID CommandID" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.ComponentModel.Design.CommandID</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added: an object of type 'CommandID'</value>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets the <see cref="T:System.ComponentModel.Design.CommandID" /> associated with this menu command.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Enabled">
|
||
|
<MemberSignature Language="C#" Value="public virtual bool Enabled { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance bool Enabled" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Boolean</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<value>To be added: an object of type 'bool'</value>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets a value indicating whether this menu item is available.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Invoke">
|
||
|
<MemberSignature Language="C#" Value="public virtual void Invoke ();" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Invoke() cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Void</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters />
|
||
|
<Docs>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Invokes the command.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Invoke">
|
||
|
<MemberSignature Language="C#" Value="public virtual void Invoke (object arg);" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Invoke(object arg) cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Void</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
<Parameter Name="arg" Type="System.Object" />
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<remarks>To be added.</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Invokes the command with the given parameter.</para>
|
||
|
</summary>
|
||
|
<param name="arg">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An optional argument for use by the command.</param>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="OleStatus">
|
||
|
<MemberSignature Language="C#" Value="public virtual int OleStatus { get; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance int32 OleStatus" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<Attributes>
|
||
|
<Attribute>
|
||
|
<AttributeName>System.MonoTODO</AttributeName>
|
||
|
</Attribute>
|
||
|
</Attributes>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Int32</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added: an object of type 'int'</value>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets the OLE command status code for this menu item.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="OnCommandChanged">
|
||
|
<MemberSignature Language="C#" Value="protected virtual void OnCommandChanged (EventArgs e);" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnCommandChanged(class System.EventArgs e) cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Void</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
<Parameter Name="e" Type="System.EventArgs" />
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="f2adaf01-1ed1-42e1-8c31-8d467e7e0ee2">Raising an Event</a></format>.</para>
|
||
|
<para>The <see cref="M:System.ComponentModel.Design.MenuCommand.OnCommandChanged(System.EventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Raises the <see cref="E:System.ComponentModel.Design.MenuCommand.CommandChanged" /> event.</para>
|
||
|
</summary>
|
||
|
<param name="e">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.EventArgs" /> that contains the event data. </param>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Properties">
|
||
|
<MemberSignature Language="C#" Value="public virtual System.Collections.IDictionary Properties { get; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.IDictionary Properties" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Collections.IDictionary</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Docs>
|
||
|
<value>To be added.</value>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>All menu commands store their public properties in the <see cref="P:System.ComponentModel.Design.MenuCommand.Properties" /> collection. The key in the properties dictionary is the property name. This allows for generic enumeration of properties and provides a consistent substrate from which new properties can be added without modifying the class definition.</para>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets the public properties associated with the <see cref="T:System.ComponentModel.Design.MenuCommand" />.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Supported">
|
||
|
<MemberSignature Language="C#" Value="public virtual bool Supported { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance bool Supported" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Boolean</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<value>To be added: an object of type 'bool'</value>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets a value indicating whether this menu item is supported.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="ToString">
|
||
|
<MemberSignature Language="C#" Value="public override string ToString ();" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.String</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters />
|
||
|
<Docs>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Returns a string representation of this menu command.</para>
|
||
|
</summary>
|
||
|
<returns>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>A string containing the value of the <see cref="P:System.ComponentModel.Design.MenuCommand.CommandID" /> property appended with the names of any flags that are set, separated by pipe bars (|). These flag properties include <see cref="P:System.ComponentModel.Design.MenuCommand.Checked" />, <see cref="P:System.ComponentModel.Design.MenuCommand.Enabled" />, <see cref="P:System.ComponentModel.Design.MenuCommand.Supported" />, and <see cref="P:System.ComponentModel.Design.MenuCommand.Visible" />.</para>
|
||
|
</returns>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="Visible">
|
||
|
<MemberSignature Language="C#" Value="public virtual bool Visible { get; set; }" />
|
||
|
<MemberSignature Language="ILAsm" Value=".property instance bool Visible" />
|
||
|
<MemberType>Property</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Boolean</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<value>To be added: an object of type 'bool'</value>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets or sets a value indicating whether this menu item is visible.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
</Members>
|
||
|
</Type>
|