﻿<?xml version="1.0" encoding="utf-8"?><Type Name="MenuStrip" FullName="System.Windows.Forms.MenuStrip"><TypeSignature Language="C#" Value="public class MenuStrip : System.Windows.Forms.ToolStrip" /><AssemblyInfo><AssemblyName>System.Windows.Forms</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Windows.Forms.ToolStrip</BaseTypeName></Base><Interfaces /><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)</AttributeName></Attribute></Attributes><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="T:System.Windows.Forms.MenuStrip" /> is the top-level container that supersedes <see cref="T:System.Windows.Forms.MainMenu" />. It also provides key handling and multiple document interface (MDI) features. Functionally, <see cref="T:System.Windows.Forms.ToolStripDropDownItem" /> and <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> work along with <see cref="T:System.Windows.Forms.MenuStrip" />, although they are derived from <see cref="T:System.Windows.Forms.ToolStripItem" />.</para><para>The following items are specifically designed to work seamlessly with both <see cref="T:System.Windows.Forms.ToolStripSystemRenderer" /> and <see cref="T:System.Windows.Forms.ToolStripProfessionalRenderer" /> in all orientations. They are available by default at design time for the <see cref="T:System.Windows.Forms.MenuStrip" /> control:</para><list type="bullet"><item><para><see cref="T:System.Windows.Forms.ToolStripMenuItem" /></para></item><item><para><see cref="T:System.Windows.Forms.ToolStripTextBox" /></para></item><item><para><see cref="T:System.Windows.Forms.ToolStripComboBox" /></para></item></list><para>The <see cref="T:System.Windows.Forms.MenuStrip" /> control represents the container for the menu structure of a form. You can add <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> objects to the <see cref="T:System.Windows.Forms.MenuStrip" /> that represent the individual menu commands in the menu structure. Each <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> can be a command for your application or a parent menu for other submenu items.</para><para>Although <see cref="T:System.Windows.Forms.MenuStrip" /> replaces and adds functionality to the <see cref="T:System.Windows.Forms.MainMenu" /> control of previous versions, <see cref="T:System.Windows.Forms.MainMenu" /> is retained for both backward compatibility and future use if you choose.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides a menu system for a form.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public MenuStrip ();" /><MemberType>Constructor</MemberType><Parameters /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this constructor to create a <see cref="T:System.Windows.Forms.MenuStrip" /> to which you can add <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> objects.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Windows.Forms.MenuStrip" /> class. </para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="CanOverflow"><MemberSignature Language="C#" Value="public bool CanOverflow { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.ComponentModel.Browsable(false)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DefaultValue(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The overflow feature moves menu items to a drop-down menu when there is not enough room to display them in a <see cref="T:System.Windows.Forms.MenuStrip" />. When you set the <see cref="P:System.Windows.Forms.MenuStrip.CanOverflow" /> property to true, you must also enable overflow for specific menu items by setting the <see cref="P:System.Windows.Forms.ToolStripMenuItem.Overflow" /> property. By default, menu items are not displayed if they cannot fit within the available space.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a value indicating whether the <see cref="T:System.Windows.Forms.MenuStrip" /> supports overflow functionality. </para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="CreateAccessibilityInstance"><MemberSignature Language="C#" Value="protected override System.Windows.Forms.AccessibleObject CreateAccessibilityInstance ();" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Windows.Forms.AccessibleObject</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If you do not explicitly call the <see cref="M:System.Windows.Forms.MenuStrip.CreateAccessibilityInstance" /> method, it will be called when the <see cref="P:System.Windows.Forms.Control.AccessibilityObject" /> property is referenced.</para><block subset="none" type="note"><para>To get or set the <see cref="P:System.Windows.Forms.Control.AccessibilityObject" /> property, you must add a reference to the Accessibility assembly installed with the .NET Framework.</para></block><para>For a code example of using <see cref="M:System.Windows.Forms.MenuStrip.CreateAccessibilityInstance" />, see <see cref="M:System.Windows.Forms.Control.CreateAccessibilityInstance" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a new accessibility object for the control.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A new <see cref="T:System.Windows.Forms.AccessibleObject" /> for the control.</para></returns></Docs></Member><Member MemberName="CreateDefaultItem"><MemberSignature Language="C#" Value="protected override System.Windows.Forms.ToolStripItem CreateDefaultItem (string text, System.Drawing.Image image, EventHandler onClick);" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Windows.Forms.ToolStripItem</ReturnType></ReturnValue><Parameters><Parameter Name="text" Type="System.String" /><Parameter Name="image" Type="System.Drawing.Image" /><Parameter Name="onClick" Type="System.EventHandler" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="M:System.Windows.Forms.MenuStrip.CreateDefaultItem(System.String,System.Drawing.Image,System.EventHandler)" /> method to add a <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> with commonly used characteristics to a <see cref="T:System.Windows.Forms.MenuStrip" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> with the specified text, image, and event handler on a new <see cref="T:System.Windows.Forms.MenuStrip" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="M:System.Windows.Forms.ToolStripMenuItem.#ctor(System.String,System.Drawing.Image,System.EventHandler)" />, or a <see cref="T:System.Windows.Forms.ToolStripSeparator" /> if the <paramref name="text" /> parameter is a hyphen (-).</para></returns><param name="text"><attribution license="cc4" from="Microsoft" modified="false" />The text to use for the <see cref="T:System.Windows.Forms.ToolStripMenuItem" />. If the <paramref name="text" /> parameter is a hyphen (-), this method creates a <see cref="T:System.Windows.Forms.ToolStripSeparator" />.</param><param name="image"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Drawing.Image" /> to display on the <see cref="T:System.Windows.Forms.ToolStripMenuItem" />.</param><param name="onClick"><attribution license="cc4" from="Microsoft" modified="false" />An event handler that raises the <see cref="E:System.Windows.Forms.Control.Click" /> event when the <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> is clicked.</param></Docs></Member><Member MemberName="DefaultGripMargin"><MemberSignature Language="C#" Value="protected override System.Windows.Forms.Padding DefaultGripMargin { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Windows.Forms.Padding</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the default spacing, in pixels, between the sizing grip and the edges of the <see cref="T:System.Windows.Forms.MenuStrip" />.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="DefaultPadding"><MemberSignature Language="C#" Value="protected override System.Windows.Forms.Padding DefaultPadding { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Windows.Forms.Padding</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Windows.Forms.MenuStrip.DefaultPadding" /> property to set the interior space between controls. When a control is a container of items, padding represents the space from the edge of the container.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the spacing, in pixels, between the left, right, top, and bottom edges of the <see cref="T:System.Windows.Forms.MenuStrip" /> from the edges of the form.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="DefaultShowItemToolTips"><MemberSignature Language="C#" Value="protected override bool DefaultShowItemToolTips { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="P:System.Windows.Forms.MenuStrip.DefaultShowItemToolTips" /> property always returns false because typically, ToolTips are not used for menus or menu items.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether ToolTips are shown for the <see cref="T:System.Windows.Forms.MenuStrip" /> by default.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="DefaultSize"><MemberSignature Language="C#" Value="protected override System.Drawing.Size DefaultSize { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Drawing.Size</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the horizontal and vertical dimensions, in pixels, of the <see cref="T:System.Windows.Forms.MenuStrip" /> when it is first created.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="GripStyle"><MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripGripStyle GripStyle { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(System.Windows.Forms.ToolStripGripStyle.Hidden)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Windows.Forms.ToolStripGripStyle</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the visibility of the grip used to reposition the control.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="MdiWindowListItem"><MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripMenuItem MdiWindowListItem { set; get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.MdiWindowListItemConverter))</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.MergableProperty(false)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DefaultValue(null)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Windows.Forms.ToolStripMenuItem</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Windows.Forms.MenuStrip.MdiWindowListItem" /> property to designate or discover which <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> displays MDI children.</para><para>Use the <see cref="E:System.Windows.Forms.MenuStrip.MenuActivate" /> and <see cref="E:System.Windows.Forms.MenuStrip.MenuDeactivate" /> events on child menus to reflect changes to the value of <see cref="P:System.Windows.Forms.MenuStrip.MdiWindowListItem" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the <see cref="T:System.Windows.Forms.ToolStripMenuItem" /> that is used to display a list of Multiple-document interface (MDI) child forms.</para></summary></Docs></Member><Member MemberName="MenuActivate"><MemberSignature Language="C#" Value="public event EventHandler MenuActivate;" /><MemberType>Event</MemberType><ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When activated by the ALT key, the <see cref="T:System.Windows.Forms.MenuStrip" /> or <see cref="T:System.Windows.Forms.ToolStrip" /> typically neither take nor remove the focus from the control that currently has the focus. If there is a control hosted within the <see cref="T:System.Windows.Forms.MenuStrip" /> or a drop-down of the <see cref="T:System.Windows.Forms.MenuStrip" />, the control gains focus when the user presses the TAB key. In general, the <see cref="E:System.Windows.Forms.Control.GotFocus" />, <see cref="E:System.Windows.Forms.Control.LostFocus" />, <see cref="E:System.Windows.Forms.Control.Enter" />, and <see cref="E:System.Windows.Forms.Control.Leave" /> events of <see cref="T:System.Windows.Forms.MenuStrip" /> might not be raised when they are activated by the keyboard. In such cases, use the <see cref="E:System.Windows.Forms.MenuStrip.MenuActivate" /> and <see cref="E:System.Windows.Forms.MenuStrip.MenuDeactivate" /> events instead.</para><para>For more information about handling events, see <format type="text/html"><a href="01e4f1bc-e55e-413f-98c7-6588493e5f67">Consuming Events</a></format>. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Occurs when the user accesses the menu with the keyboard or mouse. </para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="MenuDeactivate"><MemberSignature Language="C#" Value="public event EventHandler MenuDeactivate;" /><MemberType>Event</MemberType><ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When activated by the ALT key, the <see cref="T:System.Windows.Forms.MenuStrip" /> or <see cref="T:System.Windows.Forms.ToolStrip" /> typically neither take nor remove the focus from the control that currently has the focus. If there is a control hosted within the <see cref="T:System.Windows.Forms.MenuStrip" /> or a drop-down of the <see cref="T:System.Windows.Forms.MenuStrip" />, the control gains focus when the user presses the TAB key. In general, the <see cref="E:System.Windows.Forms.Control.GotFocus" />, <see cref="E:System.Windows.Forms.Control.LostFocus" />, <see cref="E:System.Windows.Forms.Control.Enter" />, and <see cref="E:System.Windows.Forms.Control.Leave" /> events of <see cref="T:System.Windows.Forms.MenuStrip" /> might not be raised when they are activated by the keyboard. In such cases, use the <see cref="E:System.Windows.Forms.MenuStrip.MenuActivate" /> and <see cref="E:System.Windows.Forms.MenuStrip.MenuDeactivate" /> events instead.</para><para>For more information about handling events, see <format type="text/html"><a href="01e4f1bc-e55e-413f-98c7-6588493e5f67">Consuming Events</a></format>. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Occurs when the <see cref="T:System.Windows.Forms.MenuStrip" /> is deactivated.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnMenuActivate"><MemberSignature Language="C#" Value="protected virtual void OnMenuActivate (EventArgs e);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><since version=".NET 2.0" /><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.Windows.Forms.MenuStrip.OnMenuActivate(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.Windows.Forms.MenuStrip.MenuActivate" /> 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><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnMenuDeactivate"><MemberSignature Language="C#" Value="protected virtual void OnMenuDeactivate (EventArgs e);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><since version=".NET 2.0" /><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.Windows.Forms.MenuStrip.OnMenuDeactivate(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.Windows.Forms.MenuStrip.MenuDeactivate" /> 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><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ProcessCmdKey"><MemberSignature Language="C#" Value="protected override bool ProcessCmdKey (ref System.Windows.Forms.Message m, System.Windows.Forms.Keys keyData);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="m" Type="System.Windows.Forms.Message&amp;" RefType="ref" /><Parameter Name="keyData" Type="System.Windows.Forms.Keys" /></Parameters><Docs><param name="m">To be added.</param><param name="keyData">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks><since version=".NET 2.0" /></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ShowItemToolTips"><MemberSignature Language="C#" Value="public bool ShowItemToolTips { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="P:System.Windows.Forms.MenuStrip.ShowItemToolTips" /> property returns false by default because typically, ToolTips are not used for menus or menu items.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a value indicating whether ToolTips are shown for the <see cref="T:System.Windows.Forms.MenuStrip" />. </para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Stretch"><MemberSignature Language="C#" Value="public bool Stretch { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a value indicating whether the <see cref="T:System.Windows.Forms.MenuStrip" /> stretches from end to end in its container. </para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="WndProc"><MemberSignature Language="C#" Value="protected override void WndProc (ref System.Windows.Forms.Message m);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="m" Type="System.Windows.Forms.Message&amp;" RefType="ref" /></Parameters><Docs><param name="m">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks><since version=".NET 2.0" /></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member></Members></Type>