Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
4632 lines (4226 sloc) 307 KB
<Type Name="ToolStrip" FullName="System.Windows.Forms.ToolStrip">
<TypeSignature Language="C#" Value="public class ToolStrip : System.Windows.Forms.ScrollableControl, IDisposable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ToolStrip extends System.Windows.Forms.ScrollableControl implements class System.ComponentModel.IComponent, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.ToolStrip" />
<TypeSignature Language="VB.NET" Value="Public Class ToolStrip&#xA;Inherits ScrollableControl&#xA;Implements IDisposable" />
<TypeSignature Language="C++ CLI" Value="public ref class ToolStrip : System::Windows::Forms::ScrollableControl, IDisposable" />
<TypeSignature Language="F#" Value="type ToolStrip = class&#xA; inherit ScrollableControl&#xA; interface IComponent&#xA; interface IDisposable" />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Forms.ScrollableControl</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.ComponentModel.IComponent</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultEvent("ItemClicked")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultProperty("Items")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netcore-3.0">
<AttributeName>System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ToolStripCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netcore-3.0">
<AttributeName>System.ComponentModel.Designer("System.Windows.Forms.Design.ToolStripDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netcore-3.0">
<AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5">
<AttributeName>System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ToolStripCodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5">
<AttributeName>System.ComponentModel.Designer("System.Windows.Forms.Design.ToolStripDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netcore-3.0">
<AttributeName>System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides a container for Windows toolbar objects.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Forms.ToolStrip> is the base class for <xref:System.Windows.Forms.MenuStrip>, <xref:System.Windows.Forms.StatusStrip>, and <xref:System.Windows.Forms.ContextMenuStrip>.
Use <xref:System.Windows.Forms.ToolStrip> and its associated classes in new Windows Forms applications to create toolbars that can have a Windows XP, Office, Internet Explorer, or custom appearance and behavior, all with or without themes, and with support for overflow and run-time item reordering. <xref:System.Windows.Forms.ToolStrip> controls also offer a rich design-time experience that includes in-place activation and editing, custom layout, and sharing of horizontal or vertical space within a specified <xref:System.Windows.Forms.ToolStripContainer>.
The <xref:System.Windows.Forms.ToolStrip> class provides many members that manage painting, mouse and keyboard input, and drag-and-drop functionality. Use the <xref:System.Windows.Forms.ToolStripRenderer> class with the <xref:System.Windows.Forms.ToolStripManager> class to gain even more control and customizability over the painting and layout style of all <xref:System.Windows.Forms.ToolStrip> controls on a Windows Form.
The following items are specifically designed to work seamlessly with both <xref:System.Windows.Forms.ToolStripSystemRenderer> and <xref:System.Windows.Forms.ToolStripProfessionalRenderer> in all orientations. They are available by default at design time for the <xref:System.Windows.Forms.ToolStrip> control:
- <xref:System.Windows.Forms.ToolStripButton>
- <xref:System.Windows.Forms.ToolStripSeparator>
- <xref:System.Windows.Forms.ToolStripLabel>
- <xref:System.Windows.Forms.ToolStripDropDownButton>
- <xref:System.Windows.Forms.ToolStripSplitButton>
- <xref:System.Windows.Forms.ToolStripTextBox>
- <xref:System.Windows.Forms.ToolStripComboBox>
You can join <xref:System.Windows.Forms.ToolStrip> controls within a specified <xref:System.Windows.Forms.ToolStripContainer> and merge <xref:System.Windows.Forms.ToolStrip> controls with each other. Use <xref:System.Windows.Forms.ToolStripPanel> rather than <xref:System.Windows.Forms.ToolStripContainer> for Multiple Document Interface (MDI) applications. Typically, a <xref:System.Windows.Forms.ToolStrip> does not participate in the tab order unless it is absolutely positioned rather than being docked or in a <xref:System.Windows.Forms.ToolStripPanel>.
Use the <xref:System.Windows.Forms.ToolStripControlHost> class to host any other Windows Forms control in a <xref:System.Windows.Forms.ToolStrip>.
By default, the <xref:System.Windows.Forms.ToolStrip> is double buffered, taking advantage of the <xref:System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer> setting.
Although <xref:System.Windows.Forms.ToolStrip> replaces and adds functionality to the <xref:System.Windows.Forms.ToolBar> control of previous versions, <xref:System.Windows.Forms.ToolBar> is retained for both backward compatibility and future use if you choose.
## Examples
The following code example demonstrates adding a <xref:System.Windows.Forms.ToolStripContainer> and a <xref:System.Windows.Forms.ToolStrip> to a Windows Forms, adding items to the <xref:System.Windows.Forms.ToolStrip>, and adding the <xref:System.Windows.Forms.ToolStrip> to the <xref:System.Windows.Forms.ToolStripContainer.TopToolStripPanel%2A> of the <xref:System.Windows.Forms.ToolStripContainer>.
[!code-csharp[System.Windows.Forms.ToolStripContainer2#1](~/samples/snippets/csharp/VS_Snippets_Winforms/system.windows.forms.toolstripcontainer2/cs/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStripContainer2#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/system.windows.forms.toolstripcontainer2/vb/form1.vb#1)]
]]></format>
</remarks>
<altmember cref="T:System.Windows.Forms.MenuStrip" />
<altmember cref="T:System.Windows.Forms.ContextMenuStrip" />
<altmember cref="T:System.Windows.Forms.StatusStrip" />
<altmember cref="T:System.Windows.Forms.ToolStripItem" />
<altmember cref="T:System.Windows.Forms.ToolStripDropDown" />
<altmember cref="T:System.Windows.Forms.ToolStripContainer" />
<related type="Article" href="https://msdn.microsoft.com/library/e5ef455a-e049-429c-8005-30c93132fb79">ToolStrip Control (Windows Forms)</related>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ToolStrip" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ToolStrip ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; ToolStrip();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ToolStrip" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ToolStrip (params System.Windows.Forms.ToolStripItem[] items);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.Forms.ToolStripItem[] items) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.#ctor(System.Windows.Forms.ToolStripItem[])" />
<MemberSignature Language="VB.NET" Value="Public Sub New (ParamArray items As ToolStripItem())" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; ToolStrip(... cli::array &lt;System::Windows::Forms::ToolStripItem ^&gt; ^ items);" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.ToolStrip : System.Windows.Forms.ToolStripItem[] -&gt; System.Windows.Forms.ToolStrip" Usage="new System.Windows.Forms.ToolStrip items" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="items" Type="System.Windows.Forms.ToolStripItem[]">
<Attributes>
<Attribute FrameworkAlternate="netcore-3.0">
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="items">An array of <see cref="T:System.Windows.Forms.ToolStripItem" /> objects.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.ToolStrip" /> class with the specified array of <see cref="T:System.Windows.Forms.ToolStripItem" />s.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AllowDrop">
<MemberSignature Language="C#" Value="public override bool AllowDrop { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AllowDrop" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AllowDrop" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property AllowDrop As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property bool AllowDrop { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.AllowDrop : bool with get, set" Usage="System.Windows.Forms.ToolStrip.AllowDrop" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.</summary>
<value>
<see langword="true" /> to control drag-and-drop and item reordering through events that you implement; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Set the <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> property to `true` and set the <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> property to `false` to respond to drag-and-drop behavior you have defined in the <xref:System.Windows.Forms.Control.DragEnter?displayProperty=nameWithType>, <xref:System.Windows.Forms.Control.DragLeave?displayProperty=nameWithType>, and <xref:System.Windows.Forms.Control.DragDrop?displayProperty=nameWithType> events.
Set <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> to `false` and set <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> to `true` to cause the <xref:System.Windows.Forms.ToolStrip> class to handle drag-and-drop and item reordering automatically. Set <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> to `true` for two <xref:System.Windows.Forms.ToolStrip> objects to allow dragging of items from one <xref:System.Windows.Forms.ToolStrip> to the other. To enable the default drag-and-drop, the ALT key must be pressed during the drag operation.
Setting both <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> and <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> to `true` throws an exception.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">
<see cref="P:System.Windows.Forms.ToolStrip.AllowDrop" /> and <see cref="P:System.Windows.Forms.ToolStrip.AllowItemReorder" /> are both set to <see langword="true" />.</exception>
<altmember cref="P:System.Windows.Forms.ToolStrip.AllowItemReorder" />
<altmember cref="E:System.Windows.Forms.Control.DragEnter" />
<altmember cref="E:System.Windows.Forms.Control.DragLeave" />
<altmember cref="E:System.Windows.Forms.Control.DragDrop" />
</Docs>
</Member>
<Member MemberName="AllowItemReorder">
<MemberSignature Language="C#" Value="public bool AllowItemReorder { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AllowItemReorder" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AllowItemReorder" />
<MemberSignature Language="VB.NET" Value="Public Property AllowItemReorder As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool AllowItemReorder { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.AllowItemReorder : bool with get, set" Usage="System.Windows.Forms.ToolStrip.AllowItemReorder" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(false)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether drag-and-drop and item reordering are handled privately by the <see cref="T:System.Windows.Forms.ToolStrip" /> class.</summary>
<value>
<see langword="true" /> to cause the <see cref="T:System.Windows.Forms.ToolStrip" /> class to handle drag-and-drop and item reordering automatically; otherwise, <see langword="false" />. The default value is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Set the <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> property to `true` and set the <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> property to `false` to respond to drag-and-drop behavior you have defined in the <xref:System.Windows.Forms.Control.DragEnter?displayProperty=nameWithType>, <xref:System.Windows.Forms.Control.DragLeave?displayProperty=nameWithType>, and <xref:System.Windows.Forms.Control.DragDrop?displayProperty=nameWithType> events.
Set <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> to `false` and set <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> to `true` to cause the <xref:System.Windows.Forms.ToolStrip> class to handle drag-and-drop and item reordering automatically. Set <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> to `true` for two <xref:System.Windows.Forms.ToolStrip> objects to allow dragging of items from one <xref:System.Windows.Forms.ToolStrip> to the other. To enable the default drag-and-drop, the ALT key must be pressed during the drag operation.
Setting both <xref:System.Windows.Forms.ToolStrip.AllowDrop%2A> and <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> to `true` throws an exception.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.AllowItemReorder%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">
<see cref="P:System.Windows.Forms.ToolStrip.AllowDrop" /> and <see cref="P:System.Windows.Forms.ToolStrip.AllowItemReorder" /> are both set to <see langword="true" />.</exception>
<altmember cref="P:System.Windows.Forms.ToolStrip.AllowDrop" />
<altmember cref="E:System.Windows.Forms.Control.DragEnter" />
<altmember cref="E:System.Windows.Forms.Control.DragLeave" />
<altmember cref="E:System.Windows.Forms.Control.DragDrop" />
<related type="Article" href="https://msdn.microsoft.com/library/8480b69a-379f-4dc2-8dcf-365ed93692b2">How to: Enable Reordering of ToolStrip Items at Run Time in Windows Forms</related>
</Docs>
</Member>
<Member MemberName="AllowMerge">
<MemberSignature Language="C#" Value="public bool AllowMerge { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AllowMerge" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AllowMerge" />
<MemberSignature Language="VB.NET" Value="Public Property AllowMerge As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool AllowMerge { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.AllowMerge : bool with get, set" Usage="System.Windows.Forms.ToolStrip.AllowMerge" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether multiple <see cref="T:System.Windows.Forms.MenuStrip" />, <see cref="T:System.Windows.Forms.ToolStripDropDownMenu" />, <see cref="T:System.Windows.Forms.ToolStripMenuItem" />, and other types can be combined.</summary>
<value>
<see langword="true" /> if combining of types is allowed; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.AllowMerge%2A> property to enable multiple-document interface (MDI) children to combine their respective menus in the MDI parent.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.AllowMerge%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Anchor">
<MemberSignature Language="C#" Value="public override System.Windows.Forms.AnchorStyles Anchor { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.AnchorStyles Anchor" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.Anchor" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property Anchor As AnchorStyles" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::AnchorStyles Anchor { System::Windows::Forms::AnchorStyles get(); void set(System::Windows::Forms::AnchorStyles value); };" />
<MemberSignature Language="F#" Value="member this.Anchor : System.Windows.Forms.AnchorStyles with get, set" Usage="System.Windows.Forms.ToolStrip.Anchor" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.AnchorStyles</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the edges of the container to which a <see cref="T:System.Windows.Forms.ToolStrip" /> is bound and determines how a <see cref="T:System.Windows.Forms.ToolStrip" /> is resized with its parent.</summary>
<value>One of the <see cref="T:System.Windows.Forms.AnchorStyles" /> values.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.Anchor%2A> property to define how a <xref:System.Windows.Forms.ToolStrip> is automatically resized as its parent control is resized. Anchoring a control to its parent control ensures that the anchored edges remain in the same position relative to the edges of the parent control when the parent control is resized.
> [!NOTE]
> The <xref:System.Windows.Forms.ToolStrip.Anchor%2A> and <xref:System.Windows.Forms.ToolStrip.Dock%2A> properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.Anchor%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AutoScroll">
<MemberSignature Language="C#" Value="public override bool AutoScroll { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AutoScroll" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AutoScroll" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property AutoScroll As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property bool AutoScroll { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.AutoScroll : bool with get, set" Usage="System.Windows.Forms.ToolStrip.AutoScroll" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>
<see langword="true" /> to automatically scroll; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
<exception cref="T:System.NotSupportedException">Automatic scrolling is not supported by <see cref="T:System.Windows.Forms.ToolStrip" /> controls.</exception>
</Docs>
</Member>
<Member MemberName="AutoScrollMargin">
<MemberSignature Language="C#" Value="public System.Drawing.Size AutoScrollMargin { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Size AutoScrollMargin" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AutoScrollMargin" />
<MemberSignature Language="VB.NET" Value="Public Property AutoScrollMargin As Size" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Size AutoScrollMargin { System::Drawing::Size get(); void set(System::Drawing::Size value); };" />
<MemberSignature Language="F#" Value="member this.AutoScrollMargin : System.Drawing.Size with get, set" Usage="System.Windows.Forms.ToolStrip.AutoScrollMargin" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Drawing.Size</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>A <see cref="T:System.Drawing.Size" /> value.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AutoScrollMinSize">
<MemberSignature Language="C#" Value="public System.Drawing.Size AutoScrollMinSize { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Size AutoScrollMinSize" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AutoScrollMinSize" />
<MemberSignature Language="VB.NET" Value="Public Property AutoScrollMinSize As Size" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Size AutoScrollMinSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };" />
<MemberSignature Language="F#" Value="member this.AutoScrollMinSize : System.Drawing.Size with get, set" Usage="System.Windows.Forms.ToolStrip.AutoScrollMinSize" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Drawing.Size</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>A <see cref="T:System.Drawing.Size" /> value.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AutoScrollPosition">
<MemberSignature Language="C#" Value="public System.Drawing.Point AutoScrollPosition { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Point AutoScrollPosition" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AutoScrollPosition" />
<MemberSignature Language="VB.NET" Value="Public Property AutoScrollPosition As Point" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Point AutoScrollPosition { System::Drawing::Point get(); void set(System::Drawing::Point value); };" />
<MemberSignature Language="F#" Value="member this.AutoScrollPosition : System.Drawing.Point with get, set" Usage="System.Windows.Forms.ToolStrip.AutoScrollPosition" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Drawing.Point</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>A <see cref="T:System.Drawing.Point" /> value.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AutoSize">
<MemberSignature Language="C#" Value="public override bool AutoSize { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AutoSize" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.AutoSize" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property AutoSize As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property bool AutoSize { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.AutoSize : bool with get, set" Usage="System.Windows.Forms.ToolStrip.AutoSize" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Visible)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the control is automatically resized to display its entire contents.</summary>
<value>
<see langword="true" /> if the control adjusts its width to closely fit its contents; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If you set <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> to `false` and the <xref:System.Windows.Forms.ToolStrip> is embedded in a <xref:System.Windows.Forms.ToolStripContainer> panel, the bounds of the <xref:System.Windows.Forms.ToolStrip> are not translated when you move the <xref:System.Windows.Forms.ToolStrip> to a different panel of the <xref:System.Windows.Forms.ToolStripContainer>. To translate the bounds properly, synchronize the <xref:System.Windows.Forms.ToolStrip.LayoutStyleChanged> event, check the value of the <xref:System.Windows.Forms.ToolStrip.Orientation%2A> property, and resize the <xref:System.Windows.Forms.ToolStrip>.
The <xref:System.Windows.Forms.ToolStripItem.Image%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageAlign%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageIndex%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageKey%2A>, and <xref:System.Windows.Forms.ToolStripItem.ImageScaling%2A> properties pertain to various aspects of image handling. Use images in <xref:System.Windows.Forms.ToolStrip> controls by setting these properties directly or by setting the run-time-only <xref:System.Windows.Forms.ToolStrip.ImageList%2A> property.
Image scaling is determined by the interaction of properties in both <xref:System.Windows.Forms.ToolStrip> and <xref:System.Windows.Forms.ToolStripItem>, as follows:
- <xref:System.Windows.Forms.ToolStrip.ImageScalingSize%2A> is the scale of the final image as determined by the combination of the image's <xref:System.Windows.Forms.ToolStripItem.ImageScaling%2A> setting and the container's <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> setting.
- If <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> is `true` (the default) and <xref:System.Windows.Forms.ToolStripItemImageScaling> is <xref:System.Windows.Forms.ToolStripItemImageScaling.SizeToFit>, no image scaling occurs, and the <xref:System.Windows.Forms.ToolStrip> size is that of the largest item, or a prescribed minimum size.
- If <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> is `false` and <xref:System.Windows.Forms.ToolStripItemImageScaling> is <xref:System.Windows.Forms.ToolStripItemImageScaling.None>, neither image nor <xref:System.Windows.Forms.ToolStrip> scaling occurs.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AutoSizeChanged">
<MemberSignature Language="C#" Value="public event EventHandler AutoSizeChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler AutoSizeChanged" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.AutoSizeChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event AutoSizeChanged As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ AutoSizeChanged;" />
<MemberSignature Language="F#" Value="member this.AutoSizeChanged : EventHandler " Usage="member this.AutoSizeChanged : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the <see cref="P:System.Windows.Forms.ToolStrip.AutoSize" /> property has changed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.AutoSizeChanged> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.AutoSizeChanged> event.
[!code-csharp[System.Windows.Forms.EventExamples#85](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#85)]
[!code-vb[System.Windows.Forms.EventExamples#85](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#85)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BackColor">
<MemberSignature Language="C#" Value="public System.Drawing.Color BackColor { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Color BackColor" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.BackColor" />
<MemberSignature Language="VB.NET" Value="Public Property BackColor As Color" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Color BackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };" />
<MemberSignature Language="F#" Value="member this.BackColor : System.Drawing.Color with get, set" Usage="System.Windows.Forms.ToolStrip.BackColor" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Color</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the background color for the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Drawing.Color" /> that represents the background color of the <see cref="T:System.Windows.Forms.ToolStrip" />. The default is the value of the <see cref="P:System.Windows.Forms.Control.DefaultBackColor" /> property.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.ToolStrip.BackColor%2A> property does not support transparent colors unless the `SupportsTransparentBackColor` value of <xref:System.Windows.Forms.ControlStyles?displayProperty=nameWithType> is set to `true`.
The <xref:System.Windows.Forms.ToolStrip.BackColor%2A> property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a <xref:System.Windows.Forms.Button> will have the same <xref:System.Windows.Forms.ToolStrip.BackColor%2A> as its parent <xref:System.Windows.Forms.Form> by default. For more information about ambient properties, see the <xref:System.Windows.Forms.AmbientProperties> class or the <xref:System.Windows.Forms.Control> class overview.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>When overriding the <see cref="P:System.Windows.Forms.ToolStrip.BackColor" /> property in a derived class, use the base class's <see cref="P:System.Windows.Forms.ToolStrip.BackColor" /> property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the <see langword="get" /> and <see langword="set" /> accessors of the <see cref="P:System.Windows.Forms.ToolStrip.BackColor" /> property; you can override only one if needed.</para>
</block>
</Docs>
</Member>
<Member MemberName="BeginDrag">
<MemberSignature Language="C#" Value="public event EventHandler BeginDrag;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler BeginDrag" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.BeginDrag" />
<MemberSignature Language="VB.NET" Value="Public Custom Event BeginDrag As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ BeginDrag;" />
<MemberSignature Language="F#" Value="member this.BeginDrag : EventHandler " Usage="member this.BeginDrag : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the user begins to drag the <see cref="T:System.Windows.Forms.ToolStrip" /> control.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of <xref:System.Windows.Forms.ToolStrip.BeginDrag> and <xref:System.Windows.Forms.ToolStrip.EndDrag> with a <xref:System.Windows.Forms.ToolStrip> and a <xref:System.Windows.Forms.ToolStripContainer>.
[!code-csharp[System.Windows.Forms.ToolStrip.BeginEndDrag#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.BeginEndDrag/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.BeginEndDrag#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.BeginEndDrag/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BindingContext">
<MemberSignature Language="C#" Value="public override System.Windows.Forms.BindingContext BindingContext { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.BindingContext BindingContext" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.BindingContext" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property BindingContext As BindingContext" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::BindingContext ^ BindingContext { System::Windows::Forms::BindingContext ^ get(); void set(System::Windows::Forms::BindingContext ^ value); };" />
<MemberSignature Language="F#" Value="member this.BindingContext : System.Windows.Forms.BindingContext with get, set" Usage="System.Windows.Forms.ToolStrip.BindingContext" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.BindingContext</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the binding context for the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Windows.Forms.BindingContext" /> for the <see cref="T:System.Windows.Forms.ToolStrip" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.BindingContext> of a <xref:System.Windows.Forms.ToolStrip> returns a single <xref:System.Windows.Forms.BindingManagerBase> for all data-bound controls contained by the <xref:System.Windows.Forms.ToolStrip>. The <xref:System.Windows.Forms.BindingManagerBase> keeps all controls that are bound to the same data source synchronized. For example, setting the <xref:System.Windows.Forms.BindingManagerBase.Position%2A> property of the <xref:System.Windows.Forms.BindingManagerBase> specifies the item in the underlying list that all data-bound controls point to.
For more information about creating a new <xref:System.Windows.Forms.BindingContext> and assigning it to the <xref:System.Windows.Forms.Control.BindingContext%2A> property, see the <xref:System.Windows.Forms.BindingContext.%23ctor%2A> constructor.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>When overriding the <see cref="P:System.Windows.Forms.Control.BindingContext" /> property in a derived class, use the base class's <see cref="P:System.Windows.Forms.Control.BindingContext" /> property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the <see langword="get" /> and <see langword="set" /> accessors of the <see cref="P:System.Windows.Forms.Control.BindingContext" /> property; you can override only one, if needed.</para>
</block>
</Docs>
</Member>
<Member MemberName="CanOverflow">
<MemberSignature Language="C#" Value="public bool CanOverflow { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool CanOverflow" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.CanOverflow" />
<MemberSignature Language="VB.NET" Value="Public Property CanOverflow As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool CanOverflow { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.CanOverflow : bool with get, set" Usage="System.Windows.Forms.ToolStrip.CanOverflow" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether items in the <see cref="T:System.Windows.Forms.ToolStrip" /> can be sent to an overflow menu.</summary>
<value>
<see langword="true" /> to send <see cref="T:System.Windows.Forms.ToolStrip" /> items to an overflow menu; otherwise, <see langword="false" />. The default value is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Set the <xref:System.Windows.Forms.ToolStrip.CanOverflow%2A> property to `true` to send a <xref:System.Windows.Forms.ToolStrip> item to an overflow menu when the item's content exceeds the width of the toolbar.
> [!NOTE]
> If there are more overflow items than can be displayed on the form, use the ToolStrip Items Collection Editor to manage this situation.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.CanOverflow%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<related type="Article" href="https://msdn.microsoft.com/library/fa10e0ad-4cbf-4c0d-9082-359c2f855d4e">How to: Manage ToolStrip Overflow in Windows Forms</related>
</Docs>
</Member>
<Member MemberName="CausesValidation">
<MemberSignature Language="C#" Value="public bool CausesValidation { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool CausesValidation" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.CausesValidation" />
<MemberSignature Language="VB.NET" Value="Public Property CausesValidation As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool CausesValidation { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.CausesValidation : bool with get, set" Usage="System.Windows.Forms.ToolStrip.CausesValidation" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<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>
<summary>Gets or sets a value indicating whether the <see cref="T:System.Windows.Forms.ToolStrip" /> causes validation to be performed on any controls that require validation when it receives focus.</summary>
<value>
<see langword="false" /> in all cases.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CausesValidationChanged">
<MemberSignature Language="C#" Value="public event EventHandler CausesValidationChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler CausesValidationChanged" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.CausesValidationChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event CausesValidationChanged As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ CausesValidationChanged;" />
<MemberSignature Language="F#" Value="member this.CausesValidationChanged : EventHandler " Usage="member this.CausesValidationChanged : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the <see cref="P:System.Windows.Forms.ToolStrip.CausesValidation" /> property changes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.CausesValidationChanged> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.CausesValidationChanged> event.
[!code-csharp[System.Windows.Forms.EventExamples#87](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#87)]
[!code-vb[System.Windows.Forms.EventExamples#87](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#87)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ControlAdded">
<MemberSignature Language="C#" Value="public event System.Windows.Forms.ControlEventHandler ControlAdded;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Forms.ControlEventHandler ControlAdded" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.ControlAdded" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ControlAdded As ControlEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::Forms::ControlEventHandler ^ ControlAdded;" />
<MemberSignature Language="F#" Value="member this.ControlAdded : System.Windows.Forms.ControlEventHandler " Usage="member this.ControlAdded : System.Windows.Forms.ControlEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ControlEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>This event is not relevant for this class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This event is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ControlRemoved">
<MemberSignature Language="C#" Value="public event System.Windows.Forms.ControlEventHandler ControlRemoved;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Forms.ControlEventHandler ControlRemoved" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.ControlRemoved" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ControlRemoved As ControlEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::Forms::ControlEventHandler ^ ControlRemoved;" />
<MemberSignature Language="F#" Value="member this.ControlRemoved : System.Windows.Forms.ControlEventHandler " Usage="member this.ControlRemoved : System.Windows.Forms.ControlEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ControlEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>This event is not relevant for this class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This event is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Controls">
<MemberSignature Language="C#" Value="public System.Windows.Forms.Control.ControlCollection Controls { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.Control/ControlCollection Controls" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.Controls" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Controls As Control.ControlCollection" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::Control::ControlCollection ^ Controls { System::Windows::Forms::Control::ControlCollection ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Controls : System.Windows.Forms.Control.ControlCollection" Usage="System.Windows.Forms.ToolStrip.Controls" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.Control+ControlCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>A <see cref="T:System.Windows.Forms.Control.ControlCollection" /> representing the collection of controls contained within the <see cref="T:System.Windows.Forms.ToolStrip" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateAccessibilityInstance">
<MemberSignature Language="C#" Value="protected override System.Windows.Forms.AccessibleObject CreateAccessibilityInstance ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Windows.Forms.AccessibleObject CreateAccessibilityInstance() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.CreateAccessibilityInstance" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateAccessibilityInstance () As AccessibleObject" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Forms::AccessibleObject ^ CreateAccessibilityInstance();" />
<MemberSignature Language="F#" Value="override this.CreateAccessibilityInstance : unit -&gt; System.Windows.Forms.AccessibleObject" Usage="toolStrip.CreateAccessibilityInstance " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.AccessibleObject</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a new accessibility object for the <see cref="T:System.Windows.Forms.ToolStrip" /> item.</summary>
<returns>A new <see cref="T:System.Windows.Forms.AccessibleObject" /> for the <see cref="T:System.Windows.Forms.ToolStrip" /> item.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateControlsInstance">
<MemberSignature Language="C#" Value="protected override System.Windows.Forms.Control.ControlCollection CreateControlsInstance ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Windows.Forms.Control/ControlCollection CreateControlsInstance() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.CreateControlsInstance" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateControlsInstance () As Control.ControlCollection" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Forms::Control::ControlCollection ^ CreateControlsInstance();" />
<MemberSignature Language="F#" Value="override this.CreateControlsInstance : unit -&gt; System.Windows.Forms.Control.ControlCollection" Usage="toolStrip.CreateControlsInstance " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.Control+ControlCollection</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a new instance of the control collection for the control.</summary>
<returns>A new instance of <see cref="T:System.Windows.Forms.Control.ControlCollection" /> assigned to the control.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateDefaultItem">
<MemberSignature Language="C#" Value="protected internal virtual System.Windows.Forms.ToolStripItem CreateDefaultItem (string text, System.Drawing.Image image, EventHandler onClick);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig newslot virtual instance class System.Windows.Forms.ToolStripItem CreateDefaultItem(string text, class System.Drawing.Image image, class System.EventHandler onClick) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.CreateDefaultItem(System.String,System.Drawing.Image,System.EventHandler)" />
<MemberSignature Language="C++ CLI" Value="protected public:&#xA; virtual System::Windows::Forms::ToolStripItem ^ CreateDefaultItem(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick);" />
<MemberSignature Language="F#" Value="abstract member CreateDefaultItem : string * System.Drawing.Image * EventHandler -&gt; System.Windows.Forms.ToolStripItem&#xA;override this.CreateDefaultItem : string * System.Drawing.Image * EventHandler -&gt; System.Windows.Forms.ToolStripItem" Usage="toolStrip.CreateDefaultItem (text, image, onClick)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.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>
<param name="text">The text to use for the <see cref="T:System.Windows.Forms.ToolStripItem" />. If the <paramref name="text" /> parameter is a hyphen (-), this method creates a <see cref="T:System.Windows.Forms.ToolStripSeparator" />.</param>
<param name="image">The <see cref="T:System.Drawing.Image" /> to display on the <see cref="T:System.Windows.Forms.ToolStripItem" />.</param>
<param name="onClick">An event handler that raises the <see cref="E:System.Windows.Forms.Control.Click" /> event when the <see cref="T:System.Windows.Forms.ToolStripItem" /> is clicked.</param>
<summary>Creates a default <see cref="T:System.Windows.Forms.ToolStripItem" /> with the specified text, image, and event handler on a new <see cref="T:System.Windows.Forms.ToolStrip" /> instance.</summary>
<returns>A <see cref="M:System.Windows.Forms.ToolStripButton.#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 (-).</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateLayoutSettings">
<MemberSignature Language="C#" Value="protected virtual System.Windows.Forms.LayoutSettings CreateLayoutSettings (System.Windows.Forms.ToolStripLayoutStyle layoutStyle);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance class System.Windows.Forms.LayoutSettings CreateLayoutSettings(valuetype System.Windows.Forms.ToolStripLayoutStyle layoutStyle) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.CreateLayoutSettings(System.Windows.Forms.ToolStripLayoutStyle)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Function CreateLayoutSettings (layoutStyle As ToolStripLayoutStyle) As LayoutSettings" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual System::Windows::Forms::LayoutSettings ^ CreateLayoutSettings(System::Windows::Forms::ToolStripLayoutStyle layoutStyle);" />
<MemberSignature Language="F#" Value="abstract member CreateLayoutSettings : System.Windows.Forms.ToolStripLayoutStyle -&gt; System.Windows.Forms.LayoutSettings&#xA;override this.CreateLayoutSettings : System.Windows.Forms.ToolStripLayoutStyle -&gt; System.Windows.Forms.LayoutSettings" Usage="toolStrip.CreateLayoutSettings layoutStyle" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.LayoutSettings</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="layoutStyle" Type="System.Windows.Forms.ToolStripLayoutStyle" />
</Parameters>
<Docs>
<param name="layoutStyle">The visual arrangement to be applied to the <see cref="T:System.Windows.Forms.ToolStrip" />.</param>
<summary>Specifies the visual arrangement for the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<returns>One of the <see cref="T:System.Windows.Forms.ToolStripLayoutStyle" /> values. The default is <see langword="null" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Cursor">
<MemberSignature Language="C#" Value="public override System.Windows.Forms.Cursor Cursor { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.Cursor Cursor" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.Cursor" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property Cursor As Cursor" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::Cursor ^ Cursor { System::Windows::Forms::Cursor ^ get(); void set(System::Windows::Forms::Cursor ^ value); };" />
<MemberSignature Language="F#" Value="member this.Cursor : System.Windows.Forms.Cursor with get, set" Usage="System.Windows.Forms.ToolStrip.Cursor" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.Cursor</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the cursor that is displayed when the mouse pointer is over the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Windows.Forms.Cursor" /> that represents the cursor to display when the mouse pointer is over the <see cref="T:System.Windows.Forms.ToolStrip" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.Cursor%2A> property to get or set a specific <xref:System.Windows.Forms.Cursor> used with the <xref:System.Windows.Forms.ToolStrip>.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.Cursor%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CursorChanged">
<MemberSignature Language="C#" Value="public event EventHandler CursorChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler CursorChanged" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.CursorChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event CursorChanged As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ CursorChanged;" />
<MemberSignature Language="F#" Value="member this.CursorChanged : EventHandler " Usage="member this.CursorChanged : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the value of the <see cref="T:System.Windows.Forms.Cursor" /> property changes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.CursorChanged> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.CursorChanged> event.
[!code-csharp[System.Windows.Forms.EventExamples#88](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#88)]
[!code-vb[System.Windows.Forms.EventExamples#88](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#88)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DefaultDock">
<MemberSignature Language="C#" Value="protected virtual System.Windows.Forms.DockStyle DefaultDock { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.DockStyle DefaultDock" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultDock" />
<MemberSignature Language="VB.NET" Value="Protected Overridable ReadOnly Property DefaultDock As DockStyle" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property System::Windows::Forms::DockStyle DefaultDock { System::Windows::Forms::DockStyle get(); };" />
<MemberSignature Language="F#" Value="member this.DefaultDock : System.Windows.Forms.DockStyle" Usage="System.Windows.Forms.ToolStrip.DefaultDock" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.DockStyle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the docking location of the <see cref="T:System.Windows.Forms.ToolStrip" />, indicating which borders are docked to the container.</summary>
<value>One of the <see cref="T:System.Windows.Forms.DockStyle" /> values. The default is <see cref="F:System.Windows.Forms.DockStyle.Top" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultDropDownDirection">
<MemberSignature Language="C#" Value="public virtual System.Windows.Forms.ToolStripDropDownDirection DefaultDropDownDirection { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.ToolStripDropDownDirection DefaultDropDownDirection" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultDropDownDirection" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property DefaultDropDownDirection As ToolStripDropDownDirection" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::ToolStripDropDownDirection DefaultDropDownDirection { System::Windows::Forms::ToolStripDropDownDirection get(); void set(System::Windows::Forms::ToolStripDropDownDirection value); };" />
<MemberSignature Language="F#" Value="member this.DefaultDropDownDirection : System.Windows.Forms.ToolStripDropDownDirection with get, set" Usage="System.Windows.Forms.ToolStrip.DefaultDropDownDirection" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripDropDownDirection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value representing the default direction in which a <see cref="T:System.Windows.Forms.ToolStripDropDown" /> control is displayed relative to the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>One of the <see cref="T:System.Windows.Forms.ToolStripDropDownDirection" /> values.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.DefaultDropDownDirection%2A> property to get or set where a <xref:System.Windows.Forms.ToolStripDropDown> control appears in relation to its container.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.DefaultDropDownDirection%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The specified value is not one of the <see cref="T:System.Windows.Forms.ToolStripDropDownDirection" /> values.</exception>
</Docs>
</Member>
<Member MemberName="DefaultGripMargin">
<MemberSignature Language="C#" Value="protected virtual System.Windows.Forms.Padding DefaultGripMargin { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.Padding DefaultGripMargin" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultGripMargin" />
<MemberSignature Language="VB.NET" Value="Protected Overridable ReadOnly Property DefaultGripMargin As Padding" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property System::Windows::Forms::Padding DefaultGripMargin { System::Windows::Forms::Padding get(); };" />
<MemberSignature Language="F#" Value="member this.DefaultGripMargin : System.Windows.Forms.Padding" Usage="System.Windows.Forms.ToolStrip.DefaultGripMargin" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.Padding</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the default spacing, in pixels, between the sizing grip and the edges of the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>
<see cref="T:System.Windows.Forms.Padding" /> values representing the spacing, in pixels.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultMargin">
<MemberSignature Language="C#" Value="protected override System.Windows.Forms.Padding DefaultMargin { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.Padding DefaultMargin" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultMargin" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property DefaultMargin As Padding" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property System::Windows::Forms::Padding DefaultMargin { System::Windows::Forms::Padding get(); };" />
<MemberSignature Language="F#" Value="member this.DefaultMargin : System.Windows.Forms.Padding" Usage="System.Windows.Forms.ToolStrip.DefaultMargin" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.Padding</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the spacing, in pixels, between the <see cref="T:System.Windows.Forms.ToolStrip" /> and the <see cref="T:System.Windows.Forms.ToolStripContainer" />.</summary>
<value>One of the <see cref="T:System.Windows.Forms.Padding" /> values. The default is <see cref="F:System.Windows.Forms.Padding.Empty" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultPadding">
<MemberSignature Language="C#" Value="protected override System.Windows.Forms.Padding DefaultPadding { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.Padding DefaultPadding" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultPadding" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property DefaultPadding As Padding" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property System::Windows::Forms::Padding DefaultPadding { System::Windows::Forms::Padding get(); };" />
<MemberSignature Language="F#" Value="member this.DefaultPadding : System.Windows.Forms.Padding" Usage="System.Windows.Forms.ToolStrip.DefaultPadding" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.Padding</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the internal spacing, in pixels, of the contents of a <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Windows.Forms.Padding" /> value of <c>(0, 0, 1, 0)</c>.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
By default, the contents of the <xref:System.Windows.Forms.ToolStrip> are padded one pixel from the right edge of the <xref:System.Windows.Forms.ToolStrip> to prevent the right border from painting over a <xref:System.Windows.Forms.ToolStripItem> that is right-aligned.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DefaultShowItemToolTips">
<MemberSignature Language="C#" Value="protected virtual bool DefaultShowItemToolTips { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool DefaultShowItemToolTips" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultShowItemToolTips" />
<MemberSignature Language="VB.NET" Value="Protected Overridable ReadOnly Property DefaultShowItemToolTips As Boolean" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property bool DefaultShowItemToolTips { bool get(); };" />
<MemberSignature Language="F#" Value="member this.DefaultShowItemToolTips : bool" Usage="System.Windows.Forms.ToolStrip.DefaultShowItemToolTips" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether ToolTips are shown for the <see cref="T:System.Windows.Forms.ToolStrip" /> by default.</summary>
<value>
<see langword="true" /> in all cases.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultSize">
<MemberSignature Language="C#" Value="protected override System.Drawing.Size DefaultSize { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Size DefaultSize" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DefaultSize" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property DefaultSize As Size" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual property System::Drawing::Size DefaultSize { System::Drawing::Size get(); };" />
<MemberSignature Language="F#" Value="member this.DefaultSize : System.Drawing.Size" Usage="System.Windows.Forms.ToolStrip.DefaultSize" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Size</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the default size of the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>The default <see cref="T:System.Drawing.Size" /> of the <see cref="T:System.Windows.Forms.ToolStrip" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.ToolStrip.DefaultSize%2A> property represents the <xref:System.Drawing.Size> value of the <xref:System.Windows.Forms.ToolStrip> when it is initially created. You can adjust the size of the <xref:System.Windows.Forms.ToolStrip> by setting its <xref:System.Windows.Forms.Control.PreferredSize%2A> property value.
> [!NOTE]
> To maintain better performance, do not set the <xref:System.Drawing.Size> of a <xref:System.Windows.Forms.ToolStrip> in its constructor. Instead, override the <xref:System.Windows.Forms.ToolStrip.DefaultSize%2A> property.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>When overriding the <see cref="P:System.Windows.Forms.ToolStrip.DefaultSize" /> property in a derived class, it is preferable to return a <see cref="T:System.Drawing.Size" /> with the preferred dimensions rather than overriding all the implementation.</para>
</block>
</Docs>
</Member>
<Member MemberName="DisplayedItems">
<MemberSignature Language="C#" Value="protected internal virtual System.Windows.Forms.ToolStripItemCollection DisplayedItems { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.ToolStripItemCollection DisplayedItems" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DisplayedItems" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overridable ReadOnly Property DisplayedItems As ToolStripItemCollection" />
<MemberSignature Language="C++ CLI" Value="protected public:&#xA; virtual property System::Windows::Forms::ToolStripItemCollection ^ DisplayedItems { System::Windows::Forms::ToolStripItemCollection ^ get(); };" />
<MemberSignature Language="F#" Value="member this.DisplayedItems : System.Windows.Forms.ToolStripItemCollection" Usage="System.Windows.Forms.ToolStrip.DisplayedItems" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItemCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the subset of items that are currently displayed on the <see cref="T:System.Windows.Forms.ToolStrip" />, including items that are automatically added into the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Windows.Forms.ToolStripItemCollection" /> representing the items that are currently displayed on the <see cref="T:System.Windows.Forms.ToolStrip" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.DisplayedItems%2A> property to access only those items that are currently displayed. These are the items that are not currently in an overflow menu.
Use the <xref:System.Windows.Forms.ToolStrip.Items%2A> collection to retrieve all the items of a <xref:System.Windows.Forms.ToolStrip>.
]]></format>
</remarks>
<altmember cref="P:System.Windows.Forms.ToolStrip.Items" />
</Docs>
</Member>
<Member MemberName="DisplayRectangle">
<MemberSignature Language="C#" Value="public override System.Drawing.Rectangle DisplayRectangle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Rectangle DisplayRectangle" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.DisplayRectangle" />
<MemberSignature Language="VB.NET" Value="Public Overrides ReadOnly Property DisplayRectangle As Rectangle" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Drawing::Rectangle DisplayRectangle { System::Drawing::Rectangle get(); };" />
<MemberSignature Language="F#" Value="member this.DisplayRectangle : System.Drawing.Rectangle" Usage="System.Windows.Forms.ToolStrip.DisplayRectangle" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.Windows.Forms.Layout.IArrangedElement.DisplayRectangle</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Rectangle</ReturnType>
</ReturnValue>
<Docs>
<summary>Retrieves the current display rectangle.</summary>
<value>A <see cref="T:System.Drawing.Rectangle" /> representing the <see cref="T:System.Windows.Forms.ToolStrip" /> area for item layout.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The display rectangle is the area where you lay out items. The position and dimensions of the <xref:System.Windows.Forms.ToolStrip> display rectangle change during automatic scrolling.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.Dispose(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub Dispose (disposing As Boolean)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void Dispose(bool disposing);" />
<MemberSignature Language="F#" Value="override this.Dispose : bool -&gt; unit" Usage="toolStrip.Dispose disposing" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="disposing" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="disposing">
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
<summary>Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.ToolStrip" /> and optionally releases the managed resources.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is called by the public `Dispose` method and the <xref:System.Object.Finalize%2A> method. `Dispose` invokes the protected `Dispose(Boolean)` method with the `disposing` parameter set to `true`. <xref:System.Object.Finalize%2A> invokes `Dispose` with `disposing` set to `false`.
When the `disposing` parameter is `true`, this method releases all resources held by any managed objects that this <xref:System.Windows.Forms.ToolStrip> references. This method invokes the `Dispose` method of each referenced object.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>
<see langword="Dispose" /> can be called multiple times by other objects. When overriding <see langword="Dispose(Boolean)" />, be careful not to reference objects that have been previously disposed of in an earlier call to <see langword="Dispose" />. For more information about how to implement <see langword="Dispose(Boolean)" />, see [Implementing a Dispose Method](~/docs/standard/garbage-collection/implementing-dispose.md).
For more information about <see langword="Dispose" /> and <see cref="M:System.Object.Finalize" />, see [Cleaning Up Unmanaged Resources](~/docs/standard/garbage-collection/unmanaged.md) and [Overriding the Finalize Method](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/ddae83kx(v=vs.100)).</para>
</block>
</Docs>
</Member>
<Member MemberName="Dock">
<MemberSignature Language="C#" Value="public override System.Windows.Forms.DockStyle Dock { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.DockStyle Dock" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.Dock" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property Dock As DockStyle" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::DockStyle Dock { System::Windows::Forms::DockStyle get(); void set(System::Windows::Forms::DockStyle value); };" />
<MemberSignature Language="F#" Value="member this.Dock : System.Windows.Forms.DockStyle with get, set" Usage="System.Windows.Forms.ToolStrip.Dock" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.DockStyle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets which <see cref="T:System.Windows.Forms.ToolStrip" /> borders are docked to its parent control and determines how a <see cref="T:System.Windows.Forms.ToolStrip" /> is resized with its parent.</summary>
<value>One of the <see cref="T:System.Windows.Forms.DockStyle" /> values. The default value is <see cref="F:System.Windows.Forms.DockStyle.Top" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.Dock%2A> property to define how a <xref:System.Windows.Forms.ToolStrip> is automatically resized as its parent control is resized. For example, setting <xref:System.Windows.Forms.ToolStrip.Dock%2A> to <xref:System.Windows.Forms.DockStyle.Left> causes the <xref:System.Windows.Forms.ToolStrip> to align itself with the left edges of its parent control and to resize as the parent control is resized. Controls are docked in their z-order, which is the visual layering of controls on a form along the form's z-axis (depth).
A control can be docked to one edge of its parent container or can be docked to all edges and fill the parent container.
If the <xref:System.Windows.Forms.ToolStrip> control is in a <xref:System.Windows.Forms.ToolStripPanel>, the <xref:System.Windows.Forms.ToolStrip> can be repositioned within the <xref:System.Windows.Forms.ToolStripPanel> and across <xref:System.Windows.Forms.ToolStripPanel>s. The <xref:System.Windows.Forms.ToolStrip.Dock%2A> property is ignored, and if the <xref:System.Windows.Forms.ToolStrip.Stretch%2A> property is `false`, the size of the <xref:System.Windows.Forms.ToolStrip> grows as items are added to the <xref:System.Windows.Forms.ToolStripPanel>. Typically, the <xref:System.Windows.Forms.ToolStrip> does not participate in the tab order.
> [!NOTE]
> The <xref:System.Windows.Forms.ToolStrip.Anchor%2A> and <xref:System.Windows.Forms.ToolStrip.Dock%2A> properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.Dock%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<related type="Article" href="https://msdn.microsoft.com/library/8b595429-ba9f-46af-9c55-3d5cc53f7fff">How to: Define Z-Ordering of Docked ToolStrip Controls</related>
</Docs>
</Member>
<Member MemberName="EndDrag">
<MemberSignature Language="C#" Value="public event EventHandler EndDrag;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler EndDrag" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.EndDrag" />
<MemberSignature Language="VB.NET" Value="Public Custom Event EndDrag As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ EndDrag;" />
<MemberSignature Language="F#" Value="member this.EndDrag : EventHandler " Usage="member this.EndDrag : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the user stops dragging the <see cref="T:System.Windows.Forms.ToolStrip" /> control.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of <xref:System.Windows.Forms.ToolStrip.BeginDrag> and <xref:System.Windows.Forms.ToolStrip.EndDrag> with a <xref:System.Windows.Forms.ToolStrip> and a <xref:System.Windows.Forms.ToolStripContainer>.
[!code-csharp[System.Windows.Forms.ToolStrip.BeginEndDrag#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.BeginEndDrag/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.BeginEndDrag#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.BeginEndDrag/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Font">
<MemberSignature Language="C#" Value="public override System.Drawing.Font Font { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Drawing.Font Font" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.Font" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property Font As Font" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Drawing::Font ^ Font { System::Drawing::Font ^ get(); void set(System::Drawing::Font ^ value); };" />
<MemberSignature Language="F#" Value="member this.Font : System.Drawing.Font with get, set" Usage="System.Windows.Forms.ToolStrip.Font" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Font</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the font used to display text in the control.</summary>
<value>The current default font.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ForeColor">
<MemberSignature Language="C#" Value="public System.Drawing.Color ForeColor { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Color ForeColor" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.ForeColor" />
<MemberSignature Language="VB.NET" Value="Public Property ForeColor As Color" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Color ForeColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };" />
<MemberSignature Language="F#" Value="member this.ForeColor : System.Drawing.Color with get, set" Usage="System.Windows.Forms.ToolStrip.ForeColor" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Drawing.Color</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the foreground color of the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Drawing.Color" /> representing the foreground color.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ForeColorChanged">
<MemberSignature Language="C#" Value="public event EventHandler ForeColorChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler ForeColorChanged" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.ForeColorChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ForeColorChanged As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ ForeColorChanged;" />
<MemberSignature Language="F#" Value="member this.ForeColorChanged : EventHandler " Usage="member this.ForeColorChanged : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the value of the <see cref="P:System.Windows.Forms.ToolStrip.ForeColor" /> property changes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.ForeColorChanged> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.ForeColorChanged> event.
[!code-csharp[System.Windows.Forms.EventExamples#90](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#90)]
[!code-vb[System.Windows.Forms.EventExamples#90](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#90)]
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="GetChildAtPoint">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Retrieves the child control at a specified location.</summary>
</Docs>
</MemberGroup>
<Member MemberName="GetChildAtPoint">
<MemberSignature Language="C#" Value="public System.Windows.Forms.Control GetChildAtPoint (System.Drawing.Point point);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Forms.Control GetChildAtPoint(valuetype System.Drawing.Point point) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.GetChildAtPoint(System.Drawing.Point)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::Windows::Forms::Control ^ GetChildAtPoint(System::Drawing::Point point);" />
<MemberSignature Language="F#" Value="override this.GetChildAtPoint : System.Drawing.Point -&gt; System.Windows.Forms.Control" Usage="toolStrip.GetChildAtPoint point" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.Control</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="point" Type="System.Drawing.Point" />
</Parameters>
<Docs>
<param name="point">A <see cref="T:System.Drawing.Point" />.</param>
<summary>This method is not relevant for this class.</summary>
<returns>The child <see cref="T:System.Windows.Forms.Control" /> that is located at the specified coordinates.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetChildAtPoint">
<MemberSignature Language="C#" Value="public System.Windows.Forms.Control GetChildAtPoint (System.Drawing.Point pt, System.Windows.Forms.GetChildAtPointSkip skipValue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Forms.Control GetChildAtPoint(valuetype System.Drawing.Point pt, valuetype System.Windows.Forms.GetChildAtPointSkip skipValue) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.GetChildAtPoint(System.Drawing.Point,System.Windows.Forms.GetChildAtPointSkip)" />
<MemberSignature Language="VB.NET" Value="Public Function GetChildAtPoint (pt As Point, skipValue As GetChildAtPointSkip) As Control" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::Windows::Forms::Control ^ GetChildAtPoint(System::Drawing::Point pt, System::Windows::Forms::GetChildAtPointSkip skipValue);" />
<MemberSignature Language="F#" Value="override this.GetChildAtPoint : System.Drawing.Point * System.Windows.Forms.GetChildAtPointSkip -&gt; System.Windows.Forms.Control" Usage="toolStrip.GetChildAtPoint (pt, skipValue)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.Control</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="pt" Type="System.Drawing.Point" />
<Parameter Name="skipValue" Type="System.Windows.Forms.GetChildAtPointSkip" />
</Parameters>
<Docs>
<param name="pt">A <see cref="T:System.Drawing.Point" /> value.</param>
<param name="skipValue">A <see cref="T:System.Windows.Forms.GetChildAtPointSkip" /> value.</param>
<summary>This method is not relevant for this class.</summary>
<returns>The child <see cref="T:System.Windows.Forms.Control" /> that is located at the specified coordinates.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="GetItemAt">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Returns the item located at the specified location.</summary>
</Docs>
</MemberGroup>
<Member MemberName="GetItemAt">
<MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripItem GetItemAt (System.Drawing.Point point);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Forms.ToolStripItem GetItemAt(valuetype System.Drawing.Point point) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.GetItemAt(System.Drawing.Point)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::Windows::Forms::ToolStripItem ^ GetItemAt(System::Drawing::Point point);" />
<MemberSignature Language="F#" Value="member this.GetItemAt : System.Drawing.Point -&gt; System.Windows.Forms.ToolStripItem" Usage="toolStrip.GetItemAt point" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItem</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="point" Type="System.Drawing.Point" />
</Parameters>
<Docs>
<param name="point">The <see cref="T:System.Drawing.Point" /> at which to search for the <see cref="T:System.Windows.Forms.ToolStripItem" />.</param>
<summary>Returns the item located at the specified point in the client area of the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<returns>The <see cref="T:System.Windows.Forms.ToolStripItem" /> at the specified location, or <see langword="null" /> if the <see cref="T:System.Windows.Forms.ToolStripItem" /> is not found.</returns>
<remarks>To be added.</remarks>
<related type="Article" href="https://msdn.microsoft.com/library/cc06e61f-43b6-4408-a676-2542dcfcd96e">Windows Forms Coordinates</related>
</Docs>
</Member>
<Member MemberName="GetItemAt">
<MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripItem GetItemAt (int x, int y);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Forms.ToolStripItem GetItemAt(int32 x, int32 y) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.GetItemAt(System.Int32,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Function GetItemAt (x As Integer, y As Integer) As ToolStripItem" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::Windows::Forms::ToolStripItem ^ GetItemAt(int x, int y);" />
<MemberSignature Language="F#" Value="member this.GetItemAt : int * int -&gt; System.Windows.Forms.ToolStripItem" Usage="toolStrip.GetItemAt (x, y)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItem</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="x" Type="System.Int32" />
<Parameter Name="y" Type="System.Int32" />
</Parameters>
<Docs>
<param name="x">The horizontal coordinate, in pixels, from the left edge of the client area.</param>
<param name="y">The vertical coordinate, in pixels, from the top edge of the client area.</param>
<summary>Returns the item located at the specified x- and y-coordinates of the <see cref="T:System.Windows.Forms.ToolStrip" /> client area.</summary>
<returns>The <see cref="T:System.Windows.Forms.ToolStripItem" /> located at the specified location, or <see langword="null" /> if the <see cref="T:System.Windows.Forms.ToolStripItem" /> is not found.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetNextItem">
<MemberSignature Language="C#" Value="public virtual System.Windows.Forms.ToolStripItem GetNextItem (System.Windows.Forms.ToolStripItem start, System.Windows.Forms.ArrowDirection direction);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Windows.Forms.ToolStripItem GetNextItem(class System.Windows.Forms.ToolStripItem start, valuetype System.Windows.Forms.ArrowDirection direction) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.GetNextItem(System.Windows.Forms.ToolStripItem,System.Windows.Forms.ArrowDirection)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function GetNextItem (start As ToolStripItem, direction As ArrowDirection) As ToolStripItem" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual System::Windows::Forms::ToolStripItem ^ GetNextItem(System::Windows::Forms::ToolStripItem ^ start, System::Windows::Forms::ArrowDirection direction);" />
<MemberSignature Language="F#" Value="abstract member GetNextItem : System.Windows.Forms.ToolStripItem * System.Windows.Forms.ArrowDirection -&gt; System.Windows.Forms.ToolStripItem&#xA;override this.GetNextItem : System.Windows.Forms.ToolStripItem * System.Windows.Forms.ArrowDirection -&gt; System.Windows.Forms.ToolStripItem" Usage="toolStrip.GetNextItem (start, direction)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItem</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="start" Type="System.Windows.Forms.ToolStripItem" />
<Parameter Name="direction" Type="System.Windows.Forms.ArrowDirection" />
</Parameters>
<Docs>
<param name="start">The <see cref="T:System.Windows.Forms.ToolStripItem" /> that is the reference point from which to begin the retrieval of the next item.</param>
<param name="direction">One of the values of <see cref="T:System.Windows.Forms.ArrowDirection" /> that specifies the direction to move.</param>
<summary>Retrieves the next <see cref="T:System.Windows.Forms.ToolStripItem" /> from the specified reference point and moving in the specified direction.</summary>
<returns>A <see cref="T:System.Windows.Forms.ToolStripItem" /> that is specified by the <paramref name="start" /> parameter and is next in the order as specified by the <paramref name="direction" /> parameter.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.GetNextItem%2A> method to get the next <xref:System.Windows.Forms.ToolStripItem> of a <xref:System.Windows.Forms.ToolStrip>. The <xref:System.Windows.Forms.ArrowDirection> enumeration coordinates with the <xref:System.Windows.Forms.ToolStrip.Orientation%2A> property.
]]></format>
</remarks>
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The specified value of the <paramref name="direction" /> parameter is not one of the values of <see cref="T:System.Windows.Forms.ArrowDirection" />.</exception>
</Docs>
</Member>
<Member MemberName="GripDisplayStyle">
<MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripGripDisplayStyle GripDisplayStyle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.ToolStripGripDisplayStyle GripDisplayStyle" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.GripDisplayStyle" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property GripDisplayStyle As ToolStripGripDisplayStyle" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::ToolStripGripDisplayStyle GripDisplayStyle { System::Windows::Forms::ToolStripGripDisplayStyle get(); };" />
<MemberSignature Language="F#" Value="member this.GripDisplayStyle : System.Windows.Forms.ToolStripGripDisplayStyle" Usage="System.Windows.Forms.ToolStrip.GripDisplayStyle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripGripDisplayStyle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the orientation of the <see cref="T:System.Windows.Forms.ToolStrip" /> move handle.</summary>
<value>One of the <see cref="T:System.Windows.Forms.ToolStripGripDisplayStyle" /> values. Possible values are <see cref="F:System.Windows.Forms.ToolStripGripDisplayStyle.Horizontal" /> and <see cref="F:System.Windows.Forms.ToolStripGripDisplayStyle.Vertical" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GripMargin">
<MemberSignature Language="C#" Value="public System.Windows.Forms.Padding GripMargin { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.Padding GripMargin" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.GripMargin" />
<MemberSignature Language="VB.NET" Value="Public Property GripMargin As Padding" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::Padding GripMargin { System::Windows::Forms::Padding get(); void set(System::Windows::Forms::Padding value); };" />
<MemberSignature Language="F#" Value="member this.GripMargin : System.Windows.Forms.Padding with get, set" Usage="System.Windows.Forms.ToolStrip.GripMargin" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.Padding</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the space around the <see cref="T:System.Windows.Forms.ToolStrip" /> move handle.</summary>
<value>A <see cref="T:System.Windows.Forms.Padding" />, which represents the spacing.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.GripMargin%2A> property to get or set the space around the <xref:System.Windows.Forms.ToolStrip> move handle. Because <xref:System.Windows.Forms.Padding?displayProperty=nameWithType> can take individual values for <xref:System.Windows.Forms.Padding.Top%2A>, <xref:System.Windows.Forms.Padding.Bottom%2A>, <xref:System.Windows.Forms.Padding.Left%2A>, and <xref:System.Windows.Forms.Padding.Right%2A>, you can adjust the space around the move handle as preferred. The margin can even be off the edge of the <xref:System.Windows.Forms.ToolStrip>.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.GripMargin%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<altmember cref="T:System.Windows.Forms.Padding" />
</Docs>
</Member>
<Member MemberName="GripRectangle">
<MemberSignature Language="C#" Value="public System.Drawing.Rectangle GripRectangle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Rectangle GripRectangle" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.GripRectangle" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property GripRectangle As Rectangle" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Rectangle GripRectangle { System::Drawing::Rectangle get(); };" />
<MemberSignature Language="F#" Value="member this.GripRectangle : System.Drawing.Rectangle" Usage="System.Windows.Forms.ToolStrip.GripRectangle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Drawing.Rectangle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the boundaries of the <see cref="T:System.Windows.Forms.ToolStrip" /> move handle.</summary>
<value>An object of type <see cref="T:System.Drawing.Rectangle" />, representing the move handle boundaries. If the boundaries are not visible, the <see cref="P:System.Windows.Forms.ToolStrip.GripRectangle" /> property returns <see cref="F:System.Drawing.Rectangle.Empty" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.GripRectangle%2A> property to get boundaries for painting, hit testing, and so on.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GripStyle">
<MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripGripStyle GripStyle { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.ToolStripGripStyle GripStyle" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.GripStyle" />
<MemberSignature Language="VB.NET" Value="Public Property GripStyle As ToolStripGripStyle" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::ToolStripGripStyle GripStyle { System::Windows::Forms::ToolStripGripStyle get(); void set(System::Windows::Forms::ToolStripGripStyle value); };" />
<MemberSignature Language="F#" Value="member this.GripStyle : System.Windows.Forms.ToolStripGripStyle with get, set" Usage="System.Windows.Forms.ToolStrip.GripStyle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripGripStyle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets whether the <see cref="T:System.Windows.Forms.ToolStrip" /> move handle is visible or hidden.</summary>
<value>One of the <see cref="T:System.Windows.Forms.ToolStripGripStyle" /> values. The default value is <see cref="F:System.Windows.Forms.ToolStripGripStyle.Visible" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
In a stack layout, make a <xref:System.Windows.Forms.ToolStrip> movable by putting it in a <xref:System.Windows.Forms.ToolStripPanel> and ensuring that its <xref:System.Windows.Forms.ToolStrip.GripStyle%2A> is set to <xref:System.Windows.Forms.ToolStripGripStyle.Visible>.
]]></format>
</remarks>
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The specified value is not one of the <see cref="T:System.Windows.Forms.ToolStripGripStyle" /> values.</exception>
</Docs>
</Member>
<Member MemberName="HasChildren">
<MemberSignature Language="C#" Value="public bool HasChildren { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasChildren" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.HasChildren" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasChildren As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool HasChildren { bool get(); };" />
<MemberSignature Language="F#" Value="member this.HasChildren : bool" Usage="System.Windows.Forms.ToolStrip.HasChildren" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>
<see langword="true" /> if the <see cref="T:System.Windows.Forms.ToolStrip" /> has children; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="HorizontalScroll">
<MemberSignature Language="C#" Value="public System.Windows.Forms.HScrollProperties HorizontalScroll { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.HScrollProperties HorizontalScroll" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.HorizontalScroll" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HorizontalScroll As HScrollProperties" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::HScrollProperties ^ HorizontalScroll { System::Windows::Forms::HScrollProperties ^ get(); };" />
<MemberSignature Language="F#" Value="member this.HorizontalScroll : System.Windows.Forms.HScrollProperties" Usage="System.Windows.Forms.ToolStrip.HorizontalScroll" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.HScrollProperties</ReturnType>
</ReturnValue>
<Docs>
<summary>This property is not relevant for this class.</summary>
<value>An instance of the <see cref="T:System.Windows.Forms.HScrollProperties" /> class, which provides basic properties for an <see cref="T:System.Windows.Forms.HScrollBar" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is not relevant for this class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ImageList">
<MemberSignature Language="C#" Value="public System.Windows.Forms.ImageList ImageList { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.ImageList ImageList" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.ImageList" />
<MemberSignature Language="VB.NET" Value="Public Property ImageList As ImageList" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::ImageList ^ ImageList { System::Windows::Forms::ImageList ^ get(); void set(System::Windows::Forms::ImageList ^ value); };" />
<MemberSignature Language="F#" Value="member this.ImageList : System.Windows.Forms.ImageList with get, set" Usage="System.Windows.Forms.ToolStrip.ImageList" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(null)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ImageList</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the image list that contains the image displayed on a <see cref="T:System.Windows.Forms.ToolStrip" /> item.</summary>
<value>An object of type <see cref="T:System.Windows.Forms.ImageList" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.ToolStripItem.Image%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageAlign%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageIndex%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageKey%2A>, and <xref:System.Windows.Forms.ToolStripItem.ImageScaling%2A> properties pertain to various aspects of image handling. Use images in <xref:System.Windows.Forms.ToolStrip> controls by setting these properties directly or by setting the run-time-only <xref:System.Windows.Forms.ToolStrip.ImageList%2A> property.
Image scaling is determined by the interaction of properties in both <xref:System.Windows.Forms.ToolStrip> and <xref:System.Windows.Forms.ToolStripItem>, as follows:
- <xref:System.Windows.Forms.ToolStrip.ImageScalingSize%2A> is the scale of the final image as determined by the combination of the image's <xref:System.Windows.Forms.ToolStripItem.ImageScaling%2A> setting and the container's <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> setting.
- If <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> is `true` (the default) and <xref:System.Windows.Forms.ToolStripItemImageScaling> is <xref:System.Windows.Forms.ToolStripItemImageScaling.SizeToFit>, no image scaling occurs, and the <xref:System.Windows.Forms.ToolStrip> size is that of the largest item, or a prescribed minimum size.
- If <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> is `false` and <xref:System.Windows.Forms.ToolStripItemImageScaling> is <xref:System.Windows.Forms.ToolStripItemImageScaling.None>, neither image nor <xref:System.Windows.Forms.ToolStrip> scaling occurs.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ImageScalingSize">
<MemberSignature Language="C#" Value="public System.Drawing.Size ImageScalingSize { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Size ImageScalingSize" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.ImageScalingSize" />
<MemberSignature Language="VB.NET" Value="Public Property ImageScalingSize As Size" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Drawing::Size ImageScalingSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };" />
<MemberSignature Language="F#" Value="member this.ImageScalingSize : System.Drawing.Size with get, set" Usage="System.Windows.Forms.ToolStrip.ImageScalingSize" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(typeof(System.Drawing.Size), "16,16")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Drawing.Size</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the size, in pixels, of an image used on a <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Drawing.Size" /> value representing the size of the image, in pixels. The default is 16 x 16 pixels.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStripItemImageScaling> property to control the default size of an image. Use <xref:System.Windows.Forms.ToolStripItemImageScaling.SizeToFit> to make the size of the image on a <xref:System.Windows.Forms.ToolStripItem> to automatically adjust to fit on a <xref:System.Windows.Forms.ToolStrip> while retaining the original image proportions.
The <xref:System.Windows.Forms.ToolStripItem.Image%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageAlign%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageIndex%2A>, <xref:System.Windows.Forms.ToolStripItem.ImageKey%2A>, and <xref:System.Windows.Forms.ToolStripItem.ImageScaling%2A> properties pertain to various aspects of image handling. Use images in <xref:System.Windows.Forms.ToolStrip> controls by setting these properties directly or by setting the run-time-only <xref:System.Windows.Forms.ToolStrip.ImageList%2A> property.
Image scaling is determined by the interaction of properties in both <xref:System.Windows.Forms.ToolStrip> and <xref:System.Windows.Forms.ToolStripItem>, as follows:
- <xref:System.Windows.Forms.ToolStrip.ImageScalingSize%2A> is the scale of the final image as determined by the combination of the image's <xref:System.Windows.Forms.ToolStripItem.ImageScaling%2A> setting and the container's <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> setting.
- If <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> is `true` (the default) and <xref:System.Windows.Forms.ToolStripItemImageScaling> is <xref:System.Windows.Forms.ToolStripItemImageScaling.SizeToFit>, no image scaling occurs, and the <xref:System.Windows.Forms.ToolStrip> size is that of the largest item, or a prescribed minimum size.
- If <xref:System.Windows.Forms.ToolStrip.AutoSize%2A> is `false` and <xref:System.Windows.Forms.ToolStripItemImageScaling> is <xref:System.Windows.Forms.ToolStripItemImageScaling.None>, neither image nor <xref:System.Windows.Forms.ToolStrip> scaling occurs.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.ImageScalingSize%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsCurrentlyDragging">
<MemberSignature Language="C#" Value="public bool IsCurrentlyDragging { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsCurrentlyDragging" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.IsCurrentlyDragging" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property IsCurrentlyDragging As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsCurrentlyDragging { bool get(); };" />
<MemberSignature Language="F#" Value="member this.IsCurrentlyDragging : bool" Usage="System.Windows.Forms.ToolStrip.IsCurrentlyDragging" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the user is currently moving the <see cref="T:System.Windows.Forms.ToolStrip" /> from one <see cref="T:System.Windows.Forms.ToolStripContainer" /> to another.</summary>
<value>
<see langword="true" /> if the user is currently moving the <see cref="T:System.Windows.Forms.ToolStrip" /> from one <see cref="T:System.Windows.Forms.ToolStripContainer" /> to another; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsDropDown">
<MemberSignature Language="C#" Value="public bool IsDropDown { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsDropDown" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.IsDropDown" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property IsDropDown As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsDropDown { bool get(); };" />
<MemberSignature Language="F#" Value="member this.IsDropDown : bool" Usage="System.Windows.Forms.ToolStrip.IsDropDown" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether a <see cref="T:System.Windows.Forms.ToolStrip" /> is a <see cref="T:System.Windows.Forms.ToolStripDropDown" /> control.</summary>
<value>
<see langword="true" /> if the <see cref="T:System.Windows.Forms.ToolStrip" /> is a <see cref="T:System.Windows.Forms.ToolStripDropDown" /> control; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsInputChar">
<MemberSignature Language="C#" Value="protected override bool IsInputChar (char charCode);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance bool IsInputChar(char charCode) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.IsInputChar(System.Char)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function IsInputChar (charCode As Char) As Boolean" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override bool IsInputChar(char charCode);" />
<MemberSignature Language="F#" Value="override this.IsInputChar : char -&gt; bool" Usage="toolStrip.IsInputChar charCode" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="charCode" Type="System.Char" />
</Parameters>
<Docs>
<param name="charCode">The character to test.</param>
<summary>Determines whether a character is an input character that the item recognizes.</summary>
<returns>
<see langword="true" /> if the character should be sent directly to the item and not preprocessed; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.ToolStrip.IsInputChar%2A> method is called during window message preprocessing to determine whether the given input character should be preprocessed or sent directly to the <xref:System.Windows.Forms.ToolStrip>. If the <xref:System.Windows.Forms.ToolStrip.IsInputChar%2A> method returns `true`, the specified character is sent directly to the <xref:System.Windows.Forms.ToolStrip>. However, if the method returns `false`, the character is preprocessed and only sent to the <xref:System.Windows.Forms.ToolStrip> if it is not consumed by the preprocessing phase. The preprocessing of a character includes checking whether the character is a mnemonic of another control.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsInputKey">
<MemberSignature Language="C#" Value="protected override bool IsInputKey (System.Windows.Forms.Keys keyData);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance bool IsInputKey(valuetype System.Windows.Forms.Keys keyData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.IsInputKey(System.Windows.Forms.Keys)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function IsInputKey (keyData As Keys) As Boolean" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override bool IsInputKey(System::Windows::Forms::Keys keyData);" />
<MemberSignature Language="F#" Value="override this.IsInputKey : System.Windows.Forms.Keys -&gt; bool" Usage="toolStrip.IsInputKey keyData" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyData" Type="System.Windows.Forms.Keys" />
</Parameters>
<Docs>
<param name="keyData">One of the <see cref="T:System.Windows.Forms.Keys" /> values.</param>
<summary>Determines whether the specified key is a regular input key or a special key that requires preprocessing.</summary>
<returns>
<see langword="true" /> if the specified key is a regular input key; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ItemAdded">
<MemberSignature Language="C#" Value="public event System.Windows.Forms.ToolStripItemEventHandler ItemAdded;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Forms.ToolStripItemEventHandler ItemAdded" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.ItemAdded" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ItemAdded As ToolStripItemEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::Forms::ToolStripItemEventHandler ^ ItemAdded;" />
<MemberSignature Language="F#" Value="member this.ItemAdded : System.Windows.Forms.ToolStripItemEventHandler " Usage="member this.ItemAdded : System.Windows.Forms.ToolStripItemEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItemEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when a new <see cref="T:System.Windows.Forms.ToolStripItem" /> is added to the <see cref="T:System.Windows.Forms.ToolStripItemCollection" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.ItemAdded> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.ItemAdded> event.
[!code-csharp[System.Windows.Forms.EventExamples#91](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#91)]
[!code-vb[System.Windows.Forms.EventExamples#91](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#91)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ItemClicked">
<MemberSignature Language="C#" Value="public event System.Windows.Forms.ToolStripItemClickedEventHandler ItemClicked;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Forms.ToolStripItemClickedEventHandler ItemClicked" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.ItemClicked" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ItemClicked As ToolStripItemClickedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::Forms::ToolStripItemClickedEventHandler ^ ItemClicked;" />
<MemberSignature Language="F#" Value="member this.ItemClicked : System.Windows.Forms.ToolStripItemClickedEventHandler " Usage="member this.ItemClicked : System.Windows.Forms.ToolStripItemClickedEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItemClickedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the <see cref="T:System.Windows.Forms.ToolStripItem" /> is clicked.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.ItemClicked> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.ItemClicked> event.
[!code-csharp[System.Windows.Forms.EventExamples#92](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#92)]
[!code-vb[System.Windows.Forms.EventExamples#92](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#92)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ItemRemoved">
<MemberSignature Language="C#" Value="public event System.Windows.Forms.ToolStripItemEventHandler ItemRemoved;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Forms.ToolStripItemEventHandler ItemRemoved" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.ItemRemoved" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ItemRemoved As ToolStripItemEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::Forms::ToolStripItemEventHandler ^ ItemRemoved;" />
<MemberSignature Language="F#" Value="member this.ItemRemoved : System.Windows.Forms.ToolStripItemEventHandler " Usage="member this.ItemRemoved : System.Windows.Forms.ToolStripItemEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItemEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when a <see cref="T:System.Windows.Forms.ToolStripItem" /> is removed from the <see cref="T:System.Windows.Forms.ToolStripItemCollection" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.ItemRemoved> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.ItemRemoved> event.
[!code-csharp[System.Windows.Forms.EventExamples#93](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#93)]
[!code-vb[System.Windows.Forms.EventExamples#93](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#93)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Items">
<MemberSignature Language="C#" Value="public virtual System.Windows.Forms.ToolStripItemCollection Items { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.ToolStripItemCollection Items" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.Items" />
<MemberSignature Language="VB.NET" Value="Public Overridable ReadOnly Property Items As ToolStripItemCollection" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::ToolStripItemCollection ^ Items { System::Windows::Forms::ToolStripItemCollection ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Items : System.Windows.Forms.ToolStripItemCollection" Usage="System.Windows.Forms.ToolStrip.Items" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.MergableProperty(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripItemCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets all the items that belong to a <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>An object of type <see cref="T:System.Windows.Forms.ToolStripItemCollection" />, representing all the elements contained by a <see cref="T:System.Windows.Forms.ToolStrip" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Forms.ToolStrip.Items%2A> collection to retrieve all the items that have been added to the <xref:System.Windows.Forms.ToolStrip>, not just the items that are displayed. An item remains in the <xref:System.Windows.Forms.ToolStrip.Items%2A> collection even if it is an overflow item and is therefore not currently visible.
Use the <xref:System.Windows.Forms.ToolStrip.DisplayedItems%2A> property to retrieve only the items that are currently displayed on the <xref:System.Windows.Forms.ToolStrip>.
## Examples
The following code example adds a collection of items to a <xref:System.Windows.Forms.ToolStrip>.
[!code-csharp[System.Windows.Forms.MainToolStripExample#3](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.MainToolStripExample/cs/hvtsctoolstrip.cs#3)]
[!code-vb[System.Windows.Forms.MainToolStripExample#3](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.MainToolStripExample/vb/hvtsctoolstrip.vb#3)]
]]></format>
</remarks>
<altmember cref="P:System.Windows.Forms.ToolStrip.DisplayedItems" />
</Docs>
</Member>
<Member MemberName="LayoutCompleted">
<MemberSignature Language="C#" Value="public event EventHandler LayoutCompleted;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler LayoutCompleted" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.LayoutCompleted" />
<MemberSignature Language="VB.NET" Value="Public Custom Event LayoutCompleted As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ LayoutCompleted;" />
<MemberSignature Language="F#" Value="member this.LayoutCompleted : EventHandler " Usage="member this.LayoutCompleted : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the layout of the <see cref="T:System.Windows.Forms.ToolStrip" /> is complete.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When items do not fit within the <xref:System.Windows.Forms.ToolStrip>, an overflow button automatically appears. The <xref:System.Windows.Forms.ToolStripItem.Overflow%2A> property setting determines whether an item appears in the overflow area always, as needed, or never.
Inspect the <xref:System.Windows.Forms.ToolStripItem.Placement%2A> property in the <xref:System.Windows.Forms.ToolStrip.LayoutCompleted> event to determine whether an item was placed on the main <xref:System.Windows.Forms.ToolStrip>, the overflow <xref:System.Windows.Forms.ToolStrip>, or if it is not currently showing at all. The typical reasons why an item is not displayed are that the item did not fit on the main <xref:System.Windows.Forms.ToolStrip> and its <xref:System.Windows.Forms.ToolStripItem.Overflow%2A> property was set to <xref:System.Windows.Forms.ToolStripItemOverflow.Never>.
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.LayoutCompleted> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.LayoutCompleted> event.
[!code-csharp[System.Windows.Forms.EventExamples#94](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#94)]
[!code-vb[System.Windows.Forms.EventExamples#94](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#94)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="LayoutEngine">
<MemberSignature Language="C#" Value="public override System.Windows.Forms.Layout.LayoutEngine LayoutEngine { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.Layout.LayoutEngine LayoutEngine" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.LayoutEngine" />
<MemberSignature Language="VB.NET" Value="Public Overrides ReadOnly Property LayoutEngine As LayoutEngine" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; virtual property System::Windows::Forms::Layout::LayoutEngine ^ LayoutEngine { System::Windows::Forms::Layout::LayoutEngine ^ get(); };" />
<MemberSignature Language="F#" Value="member this.LayoutEngine : System.Windows.Forms.Layout.LayoutEngine" Usage="System.Windows.Forms.ToolStrip.LayoutEngine" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.Layout.LayoutEngine</ReturnType>
</ReturnValue>
<Docs>
<summary>Passes a reference to the cached <see cref="P:System.Windows.Forms.Control.LayoutEngine" /> returned by the layout engine interface.</summary>
<value>A <see cref="T:System.Windows.Forms.Layout.LayoutEngine" /> that represents the cached layout engine returned by the layout engine interface.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LayoutSettings">
<MemberSignature Language="C#" Value="public System.Windows.Forms.LayoutSettings LayoutSettings { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Forms.LayoutSettings LayoutSettings" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.LayoutSettings" />
<MemberSignature Language="VB.NET" Value="Public Property LayoutSettings As LayoutSettings" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::LayoutSettings ^ LayoutSettings { System::Windows::Forms::LayoutSettings ^ get(); void set(System::Windows::Forms::LayoutSettings ^ value); };" />
<MemberSignature Language="F#" Value="member this.LayoutSettings : System.Windows.Forms.LayoutSettings with get, set" Usage="System.Windows.Forms.ToolStrip.LayoutSettings" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.LayoutSettings</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets layout scheme characteristics.</summary>
<value>A <see cref="T:System.Windows.Forms.LayoutSettings" /> representing the layout scheme characteristics.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LayoutStyle">
<MemberSignature Language="C#" Value="public System.Windows.Forms.ToolStripLayoutStyle LayoutStyle { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Forms.ToolStripLayoutStyle LayoutStyle" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.LayoutStyle" />
<MemberSignature Language="VB.NET" Value="Public Property LayoutStyle As ToolStripLayoutStyle" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Forms::ToolStripLayoutStyle LayoutStyle { System::Windows::Forms::ToolStripLayoutStyle get(); void set(System::Windows::Forms::ToolStripLayoutStyle value); };" />
<MemberSignature Language="F#" Value="member this.LayoutStyle : System.Windows.Forms.ToolStripLayoutStyle with get, set" Usage="System.Windows.Forms.ToolStrip.LayoutStyle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.AmbientValue(Mono.Cecil.CustomAttributeArgument)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.ToolStripLayoutStyle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating how the <see cref="T:System.Windows.Forms.ToolStrip" /> lays out the items collection.</summary>
<value>One of the <see cref="T:System.Windows.Forms.ToolStripLayoutStyle" /> values. The default value is <see cref="F:System.Windows.Forms.ToolStripLayoutStyle.StackWithOverflow" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The default value of the `LayoutStyle` property is <xref:System.Windows.Forms.ToolStripLayoutStyle.StackWithOverflow?displayProperty=nameWithType>.
The sizing grip will not be displayed unless you also set the <xref:System.Windows.Forms.ToolStrip.LayoutStyle%2A> property to one of the overflow values. If the <xref:System.Windows.Forms.ToolStrip.LayoutStyle%2A> property is set to <xref:System.Windows.Forms.ToolStripLayoutStyle.Flow> or <xref:System.Windows.Forms.ToolStripLayoutStyle.Table>, the sizing grip will not be displayed.
## Examples
The following code example demonstrates the syntax for setting common <xref:System.Windows.Forms.ToolStrip> properties, including the <xref:System.Windows.Forms.ToolStrip.LayoutStyle%2A> property.
[!code-csharp[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/CS/form1.cs#1)]
[!code-vb[System.Windows.Forms.ToolStrip.CommonProps#1](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.CommonProps/VB/form1.vb#1)]
]]></format>
</remarks>
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The value of <see cref="P:System.Windows.Forms.ToolStrip.LayoutStyle" /> is not one of the <see cref="T:System.Windows.Forms.ToolStripLayoutStyle" /> values.</exception>
</Docs>
</Member>
<Member MemberName="LayoutStyleChanged">
<MemberSignature Language="C#" Value="public event EventHandler LayoutStyleChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler LayoutStyleChanged" />
<MemberSignature Language="DocId" Value="E:System.Windows.Forms.ToolStrip.LayoutStyleChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event LayoutStyleChanged As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ LayoutStyleChanged;" />
<MemberSignature Language="F#" Value="member this.LayoutStyleChanged : EventHandler " Usage="member this.LayoutStyleChanged : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the value of the <see cref="P:System.Windows.Forms.ToolStrip.LayoutStyle" /> property changes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information about handling events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the <xref:System.Windows.Forms.ToolStrip.LayoutStyleChanged> event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=nameWithType> with <xref:System.Console.WriteLine%2A?displayProperty=nameWithType> or appending the message to a multiline <xref:System.Windows.Forms.TextBox>.
To run the example code, paste it into a project that contains an instance of type <xref:System.Windows.Forms.ToolStrip> named `ToolStrip1`. Then ensure that the event handler is associated with the <xref:System.Windows.Forms.ToolStrip.LayoutStyleChanged> event.
[!code-csharp[System.Windows.Forms.EventExamples#95](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/CS/EventExamples.cs#95)]
[!code-vb[System.Windows.Forms.EventExamples#95](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb#95)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MaxItemSize">
<MemberSignature Language="C#" Value="protected internal virtual System.Drawing.Size MaxItemSize { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Drawing.Size MaxItemSize" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.ToolStrip.MaxItemSize" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overridable ReadOnly Property MaxItemSize As Size" />
<MemberSignature Language="C++ CLI" Value="protected public:&#xA; virtual property System::Drawing::Size MaxItemSize { System::Drawing::Size get(); };" />
<MemberSignature Language="F#" Value="member this.MaxItemSize : System.Drawing.Size" Usage="System.Windows.Forms.ToolStrip.MaxItemSize" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Size</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the maximum height and width, in pixels, of the <see cref="T:System.Windows.Forms.ToolStrip" />.</summary>
<value>A <see cref="T:System.Drawing.Size" /> representing the height and width of the control, in pixels.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnBeginDrag">
<MemberSignature Language="C#" Value="protected virtual void OnBeginDrag (EventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnBeginDrag(class System.EventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.OnBeginDrag(System.EventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub OnBeginDrag (e As EventArgs)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual void OnBeginDrag(EventArgs ^ e);" />
<MemberSignature Language="F#" Value="abstract member OnBeginDrag : EventArgs -&gt; unit&#xA;override this.OnBeginDrag : EventArgs -&gt; unit" Usage="toolStrip.OnBeginDrag e" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<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>
<param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
<summary>Raises the <see cref="E:System.Windows.Forms.ToolStrip.BeginDrag" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Raising an event invokes the event handler through a delegate. For more information, see [Handling and Raising Events](~/docs/standard/events/index.md).
The <xref:System.Windows.Forms.ToolStrip.OnBeginDrag%2A> 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.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>When overriding <see cref="M:System.Windows.Forms.ToolStrip.OnBeginDrag(System.EventArgs)" /> in a derived class, be sure to call the base class's <see cref="M:System.Windows.Forms.ToolStrip.OnBeginDrag(System.EventArgs)" /> method so that registered delegates receive the event.</para>
</block>
</Docs>
</Member>
<Member MemberName="OnDockChanged">
<MemberSignature Language="C#" Value="protected override void OnDockChanged (EventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnDockChanged(class System.EventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.OnDockChanged(System.EventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnDockChanged (e As EventArgs)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void OnDockChanged(EventArgs ^ e);" />
<MemberSignature Language="F#" Value="override this.OnDockChanged : EventArgs -&gt; unit" Usage="toolStrip.OnDockChanged e" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<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>
<param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
<summary>Raises the <see cref="E:System.Windows.Forms.Control.DockChanged" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Raising an event invokes the event handler through a delegate. For more information, see [Handling and Raising Events](~/docs/standard/events/index.md).
The <xref:System.Windows.Forms.ToolStrip.OnDockChanged%2A> 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.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>When overriding <see cref="M:System.Windows.Forms.ToolStrip.OnDockChanged(System.EventArgs)" /> in a derived class, be sure to call the base class' <see cref="M:System.Windows.Forms.ToolStrip.OnDockChanged(System.EventArgs)" /> method so that registered delegates receive the event.</para>
</block>
</Docs>
</Member>
<Member MemberName="OnEnabledChanged">
<MemberSignature Language="C#" Value="protected override void OnEnabledChanged (EventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnEnabledChanged(class System.EventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.OnEnabledChanged(System.EventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub OnEnabledChanged (e As EventArgs)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void OnEnabledChanged(EventArgs ^ e);" />
<MemberSignature Language="F#" Value="override this.OnEnabledChanged : EventArgs -&gt; unit" Usage="toolStrip.OnEnabledChanged e" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<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>
<param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
<summary>Raises the <see cref="P:System.Windows.Forms.Control.Enabled" /> event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Raising an event invokes the event handler through a delegate. For more information, see [Handling and Raising Events](~/docs/standard/events/index.md).
The <xref:System.Windows.Forms.ToolStrip.OnEnabledChanged%2A> 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.
]]></format>
</remarks>
<block subset="none" type="overrides">
<para>When overriding <see cref="M:System.Windows.Forms.ToolStrip.OnEnabledChanged(System.EventArgs)" /> in a derived class, be sure to call the base class's <see cref="M:System.Windows.Forms.ToolStrip.OnEnabledChanged(System.EventArgs)" /> method so that registered delegates receive the event.</para>
</block>
</Docs>
</Member>
<Member MemberName="OnEndDrag">
<MemberSignature Language="C#" Value="protected virtual void OnEndDrag (EventArgs e);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnEndDrag(class System.EventArgs e) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.ToolStrip.OnEndDrag(System.EventArgs)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub OnEndDrag (e As EventArgs)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; virtual void OnEndDrag(EventArgs ^ e);" />
<MemberSignature Language="F#" Value="abstract member OnEndDrag : EventArgs -&gt; unit&#xA;override this.OnEndDrag : EventArgs -&gt; unit" Usage="toolStrip.OnEndDrag e" />
<MemberType>Method</MemberType>