2003-02-12 02:00:12 +00:00
<Type Name= "ImageMenuItem" FullName= "Gtk.ImageMenuItem" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "John Luke" Value= "public class ImageMenuItem : Gtk.MenuItem" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit ImageMenuItem extends Gtk.MenuItem" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 02:00:12 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2011-11-09 16:01:51 +00:00
<Base >
<BaseTypeName > Gtk.MenuItem</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Docs >
2003-09-17 21:56:59 +00:00
<summary > A <see cref= "T:Gtk.MenuItem" /> with an icon.</summary>
2003-07-18 01:59:08 +00:00
<remarks >
2003-09-17 21:56:59 +00:00
<para >
<see cref= "T:Gtk.ImageMenuItem" /> is a <see cref= "T:Gtk.MenuItem" /> which has an icon next to the text label.</para>
<para > Note that the user can disable display of menu icons, so make sure to still fill in the text label.</para>
2005-01-12 19:42:14 +00:00
<example >
<code lang= "C#" >
//How to add MenuBar with a Quit stock MenuItem
...
Window win; //if your class derive from Window then call this. istead of win.
MenuBar menuBar
...
AccelGroup grup = new AccelGroup ();
win.AddAccelGroup(grup);
menuFile = new Menu ();
ImageMenuItem quit_item = new ImageMenuItem(Stock.Quit, group);
quit_item.AddAccelerator("activate", grup, new AccelKey(
Gdk.Key.q, Gdk.ModifierType.ControlMask, AccelFlags.Visible));
//OnMenuFileQuit is the Method runned when the event is trigged
quit_item.Activated += new EventHandler (OnMenuFileQuit);
menuFile.Append(quit_item);
MenuItem file_item = new MenuItem("_File");
file_item.Submenu = menuFile;
menuBar.Append(file_item);
</code>
</example>
2003-09-17 21:56:59 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Members >
<Member MemberName= ".ctor" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public ImageMenuItem ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
2011-11-09 16:01:51 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Creates a new <see cref= "T:Gtk.ImageMenuItem" /> .</summary>
2003-02-23 07:26:30 +00:00
<remarks >
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public ImageMenuItem (IntPtr raw);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "raw" > Pointer to the C object.</param>
<summary > Internal constructor</summary>
2003-12-24 01:35:30 +00:00
<remarks >
2011-11-09 16:01:51 +00:00
<para > This is an internal constructor, and should not be used by user code.</para>
2003-12-24 01:35:30 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public ImageMenuItem (string label);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(string label) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "label" Type= "System.String" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "label" > an object of type <see cref= "T:System.String" /> </param>
<summary > Creates a new <see cref= "T:Gtk.ImageMenuItem" /> containing a label.</summary>
2003-07-18 01:59:08 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public ImageMenuItem (string stock_id, Gtk.AccelGroup accel_group);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(string stock_id, class Gtk.AccelGroup accel_group) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "stock_id" Type= "System.String" />
<Parameter Name= "accel_group" Type= "Gtk.AccelGroup" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "stock_id" > an object of type <see cref= "T:System.String" /> </param>
<param name= "accel_group" > an object of type <see cref= "T:Gtk.AccelGroup" /> </param>
<summary > Creates a new <see cref= "T:Gtk.ImageMenuItem" /> containing the image and text from a stock item.</summary>
2003-07-18 01:59:08 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "AccelGroup" >
<MemberSignature Language= "C#" Value= "public Gtk.AccelGroup AccelGroup { set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.AccelGroup AccelGroup" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property("accel-group")</AttributeName>
</Attribute>
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > Gtk.AccelGroup</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > To be added.</summary>
<value > To be added.</value>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "AlwaysShowImage" >
<MemberSignature Language= "C#" Value= "public bool AlwaysShowImage { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool AlwaysShowImage" />
<MemberType > Property</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("always-show-image")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2011-11-09 16:01:51 +00:00
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Docs >
<summary > To be added.</summary>
<value > To be added.</value>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property valuetype GLib.GType GType" />
2003-12-24 01:35:30 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.ImageMenuItem" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Image" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget Image { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Widget Image" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("image")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
2003-03-07 01:30:00 +00:00
<Parameters >
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Child widget to appear next to the menu text.</summary>
<value > an object of type <see cref= "T:Gtk.Widget" /> </value>
<remarks />
2003-03-07 01:30:00 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "UseStock" >
<MemberSignature Language= "C#" Value= "public bool UseStock { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool UseStock" />
<MemberType > Property</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("use-stock")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2011-11-09 16:01:51 +00:00
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Docs >
<summary > To be added.</summary>
<value > To be added.</value>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>