1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="MeasureItemEventArgs" FullName="System.Windows.Forms.MeasureItemEventArgs">
3 <TypeSignature Language="C#" Value="public class MeasureItemEventArgs : EventArgs" />
5 <AssemblyName>System.Windows.Forms</AssemblyName>
6 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
7 <AssemblyVersion>2.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.EventArgs</BaseTypeName>
15 <attribution license="cc4" from="Microsoft" modified="false" />
16 <para>This event is sent when the OwnerDraw property of <see cref="T:System.Windows.Forms.ListBox" />, <see cref="T:System.Windows.Forms.ComboBox" />, <see cref="T:System.Windows.Forms.CheckedListBox" />, or <see cref="T:System.Windows.Forms.MenuItem" /> is set to true. It is used to tell the drawing function how to size an item.</para>
17 <para>For information about the event model, see <format type="text/html"><a href="D98FD58B-FA4F-4598-8378-ADDF4355A115">[<topic://cpconEventsDelegates>]</a></format>.</para>
20 <attribution license="cc4" from="Microsoft" modified="false" />
21 <para>Provides data for the MeasureItem event of the <see cref="T:System.Windows.Forms.ListBox" />, <see cref="T:System.Windows.Forms.ComboBox" />, <see cref="T:System.Windows.Forms.CheckedListBox" />, and <see cref="T:System.Windows.Forms.MenuItem" /> controls.</para>
25 <Member MemberName=".ctor">
26 <MemberSignature Language="C#" Value="public MeasureItemEventArgs (System.Drawing.Graphics graphics, int index);" />
27 <MemberType>Constructor</MemberType>
29 <Parameter Name="graphics" Type="System.Drawing.Graphics" />
30 <Parameter Name="index" Type="System.Int32" />
33 <remarks>To be added.</remarks>
35 <attribution license="cc4" from="Microsoft" modified="false" />
36 <para>Initializes a new instance of the <see cref="T:System.Windows.Forms.MeasureItemEventArgs" /> class.</para>
38 <param name="graphics">
39 <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Drawing.Graphics" /> object being written to. </param>
41 <attribution license="cc4" from="Microsoft" modified="false" />The index of the item for which you need the height or width. </param>
44 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
45 <AssemblyVersion>2.0.0.0</AssemblyVersion>
48 <Member MemberName=".ctor">
49 <MemberSignature Language="C#" Value="public MeasureItemEventArgs (System.Drawing.Graphics graphics, int index, int itemHeight);" />
50 <MemberType>Constructor</MemberType>
52 <Parameter Name="graphics" Type="System.Drawing.Graphics" />
53 <Parameter Name="index" Type="System.Int32" />
54 <Parameter Name="itemHeight" Type="System.Int32" />
57 <remarks>To be added.</remarks>
59 <attribution license="cc4" from="Microsoft" modified="false" />
60 <para>Initializes a new instance of the <see cref="T:System.Windows.Forms.MeasureItemEventArgs" /> class providing a parameter for the item height.</para>
62 <param name="graphics">
63 <attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Drawing.Graphics" /> object being written to. </param>
65 <attribution license="cc4" from="Microsoft" modified="false" />The index of the item for which you need the height or width. </param>
66 <param name="itemHeight">
67 <attribution license="cc4" from="Microsoft" modified="false" />The height of the item to measure relative to the <paramref name="graphics" /> object. </param>
70 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
71 <AssemblyVersion>2.0.0.0</AssemblyVersion>
74 <Member MemberName="Graphics">
75 <MemberSignature Language="C#" Value="public System.Drawing.Graphics Graphics { get; }" />
76 <MemberType>Property</MemberType>
78 <ReturnType>System.Drawing.Graphics</ReturnType>
81 <value>To be added.</value>
83 <attribution license="cc4" from="Microsoft" modified="false" />
84 <para>You use a <see cref="T:System.Drawing.Graphics" /> object to determine the scale to use when setting the <see cref="P:System.Windows.Forms.MeasureItemEventArgs.ItemHeight" /> and <see cref="P:System.Windows.Forms.MeasureItemEventArgs.ItemWidth" />. Different types of graphics objects can have different scales, such as the difference in measurement scale between a monitor screen and a printer.</para>
87 <attribution license="cc4" from="Microsoft" modified="false" />
88 <para>Gets the <see cref="T:System.Drawing.Graphics" /> object to measure against.</para>
92 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
93 <AssemblyVersion>2.0.0.0</AssemblyVersion>
96 <Member MemberName="Index">
97 <MemberSignature Language="C#" Value="public int Index { get; }" />
98 <MemberType>Property</MemberType>
100 <ReturnType>System.Int32</ReturnType>
103 <value>To be added.</value>
104 <remarks>To be added.</remarks>
106 <attribution license="cc4" from="Microsoft" modified="false" />
107 <para>Gets the index of the item for which the height and width is needed.</para>
111 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
112 <AssemblyVersion>2.0.0.0</AssemblyVersion>
115 <Member MemberName="ItemHeight">
116 <MemberSignature Language="C#" Value="public int ItemHeight { set; get; }" />
117 <MemberType>Property</MemberType>
119 <ReturnType>System.Int32</ReturnType>
122 <value>To be added.</value>
123 <remarks>To be added.</remarks>
125 <attribution license="cc4" from="Microsoft" modified="false" />
126 <para>Gets or sets the height of the item specified by the <see cref="P:System.Windows.Forms.MeasureItemEventArgs.Index" />.</para>
130 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
131 <AssemblyVersion>2.0.0.0</AssemblyVersion>
134 <Member MemberName="ItemWidth">
135 <MemberSignature Language="C#" Value="public int ItemWidth { set; get; }" />
136 <MemberType>Property</MemberType>
138 <ReturnType>System.Int32</ReturnType>
141 <value>To be added.</value>
143 <attribution license="cc4" from="Microsoft" modified="false" />
144 <para>This member is only used by <see cref="T:System.Windows.Forms.MenuItem" />. You use this property to ensure the menu is at least as wide as the widest menu item in the menu list.</para>
147 <attribution license="cc4" from="Microsoft" modified="false" />
148 <para>Gets or sets the width of the item specified by the <see cref="P:System.Windows.Forms.MeasureItemEventArgs.Index" />.</para>
152 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
153 <AssemblyVersion>2.0.0.0</AssemblyVersion>