2003-02-12 02:00:12 +00:00
<Type Name= "Table" FullName= "Gtk.Table" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Lee Mallabone" Value= "public class Table : Gtk.Container" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2006-08-04 19:43:19 +00:00
<AssemblyVersion > 2.10.0.0</AssemblyVersion>
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>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Pack widgets in grid/table patterns.</summary>
2003-03-15 22:50:24 +00:00
<remarks >
<para > The Table widget allows a programmer to arrange widgets in rows and columns, making it easy to align many widgets adjacent to each other, horizontally and vertically.</para>
<para > Tables are created with a specific size - the number of rows and columns. This can be changed dynamically with the <see cref= "M:Gtk.Table.Resize" /> method. Widgets are packed into the table with <see cref= "M:Gtk.Table.Attach" /> methods.</para>
2004-12-17 17:55:07 +00:00
<para > The layout of a table can be altered by setting the spacing between rows and columns. This is done with the <see cref= "P:Gtk.Table.ColumnSpacing" /> and <see cref= "P:Gtk.Table.RowSpacing" /> properties, respectively. The spacing of individual cells can be adjusted with <see cref= "M:Gtk.Table.SetColSpacing" /> and <see cref= "M:Gtk.Table.SetRowSpacing" /> .</para>
2003-03-15 22:50:24 +00:00
<para > The following shows how to create a table with three widgets:
<example >
<code lang= "C#" >
2003-03-08 21:09:16 +00:00
public Widget MakeTableTester()
{
// Create a table with 2 rows and 1 column
Table tableLayout = new Table(2, 1, false);
Label longLabel = new Label("This is a label that spans at least two Entry widgets");
// Attach the label over the entire first row
tableLayout.Attach(longLabel, 0, 2, 0, 1);
// Attach an entry to each cell in the second row
tableLayout.Attach(new Entry(), 0, 1, 1, 2);
tableLayout.Attach(new Entry(), 1, 2, 1, 2);
tableLayout.ShowAll();
return tableLayout;
}
2003-03-15 22:50:24 +00:00
</code>
</example> </para>
2003-03-08 21:09:16 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Container</BaseTypeName>
</Base>
2006-08-04 23:13:09 +00:00
<Interfaces > </Interfaces>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Reflection.DefaultMember(MemberName="Item")</AttributeName>
</Attribute>
</Attributes>
2003-02-12 02:00:12 +00:00
<Members >
<Member MemberName= "SetColSpacing" >
<MemberSignature Language= "C#" Value= "public void SetColSpacing (uint column, uint spacing);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "column" Type= "System.UInt32" />
<Parameter Name= "spacing" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Sets the spacing around a specified column.</summary>
<param name= "column" > A zero-indexed column number to adjust the spacing of.</param>
2003-03-15 22:50:24 +00:00
<param name= "spacing" > The number of pixels on each side of the <paramref name= "column" /> .</param>
<remarks >
<para > To adjust the spacing between all columns, use the <see cref= "P:Gtk.Table.ColumnSpacing" /> property.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GetColSpacing" >
<MemberSignature Language= "C#" Value= "public uint GetColSpacing (uint column);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "column" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > The spacing currently set for a given column.</summary>
<param name= "column" > A zero-indexed column number to retrieve spacing information from.</param>
2003-03-15 22:50:24 +00:00
<returns > The number of pixels of spacing assigned to the specified <paramref name= "column" /> .</returns>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2004-12-17 17:55:07 +00:00
<Member MemberName= "SetRowSpacing" >
<MemberSignature Language= "C#" Value= "public void SetRowSpacing (uint row, uint spacing);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "row" Type= "System.UInt32" />
<Parameter Name= "spacing" Type= "System.UInt32" />
</Parameters>
<Docs >
<summary > Sets the spacing around a specified row.</summary>
<param name= "row" > A zero-indexed row number to adjust the spacing of.</param>
<param name= "spacing" > The number of pixels on each side of the <paramref name= "row" /> .</param>
<remarks >
<para > To adjust the spacing between all rows, use the <see cref= "P:Gtk.Table.RowSpacing" /> property.</para>
</remarks>
</Docs>
</Member>
<Member MemberName= "GetRowSpacing" >
<MemberSignature Language= "C#" Value= "public uint GetRowSpacing (uint row);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "row" Type= "System.UInt32" />
</Parameters>
<Docs >
<summary > The spacing currently set for a given row.</summary>
<param name= "row" > A zero-indexed row number to retrieve spacing information from.</param>
<returns > The number of pixels of spacing assigned to the specified <paramref name= "row" /> .</returns>
<remarks />
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Resize" >
<MemberSignature Language= "C#" Value= "public void Resize (uint rows, uint columns);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "rows" Type= "System.UInt32" />
<Parameter Name= "columns" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-15 22:50:24 +00:00
<summary > Resizes the table so that the specified number of <paramref name= "rows" /> and <paramref name= "columns" /> are available for widget packing.</summary>
2003-03-08 21:09:16 +00:00
<param name= "rows" > The new number of rows this table should allow.</param>
<param name= "columns" > The new number of columns this table should allow.</param>
2003-03-15 22:50:24 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Attach" >
<MemberSignature Language= "C#" Value= "public void Attach (Gtk.Widget child, uint left_attach, uint right_attach, uint top_attach, uint bottom_attach, Gtk.AttachOptions xoptions, Gtk.AttachOptions yoptions, uint xpadding, uint ypadding);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "left_attach" Type= "System.UInt32" />
<Parameter Name= "right_attach" Type= "System.UInt32" />
<Parameter Name= "top_attach" Type= "System.UInt32" />
<Parameter Name= "bottom_attach" Type= "System.UInt32" />
<Parameter Name= "xoptions" Type= "Gtk.AttachOptions" />
<Parameter Name= "yoptions" Type= "Gtk.AttachOptions" />
<Parameter Name= "xpadding" Type= "System.UInt32" />
<Parameter Name= "ypadding" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Packs a widget into the table.</summary>
2003-03-15 22:50:24 +00:00
<param name= "child" > The <see cref= "T:Gtk.Widget" /> to add.</param>
<param name= "left_attach" > The column number to attach the left side of <paramref name= "child" /> to.</param>
<param name= "right_attach" > The column number to attach the right side of <paramref name= "child" /> to.</param>
<param name= "top_attach" > The row number to attach the top of <paramref name= "child" /> to.</param>
<param name= "bottom_attach" > The row number to attach the bottom of <paramref name= "child" /> to.</param>
<param name= "xoptions" > The horizontal packing options for this <paramref name= "child" /> .</param>
<param name= "yoptions" > The vertical packing options for this <paramref name= "child" /> .</param>
<param name= "xpadding" > The number of pixels of padding to add to the left and right of <paramref name= "child" /> .</param>
<param name= "ypadding" > The number of pixels of padding to add to the top and bottom of <paramref name= "child" /> .</param>
<remarks >
<para > You can pack widgets into the Table using default packing and padding with the <see cref= "M:Gtk.Table.Attach(Gtk.Widget,uint,uint,uint,uint)" /> convenience method.</para>
<para > Child widgets can span as many table cells as they wish, allowing the programmer to create complex grids of Widgets.</para>
2003-03-08 21:09:16 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Attach" >
<MemberSignature Language= "C#" Value= "public void Attach (Gtk.Widget widget, uint left_attach, uint right_attach, uint top_attach, uint bottom_attach);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "left_attach" Type= "System.UInt32" />
<Parameter Name= "right_attach" Type= "System.UInt32" />
<Parameter Name= "top_attach" Type= "System.UInt32" />
<Parameter Name= "bottom_attach" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2005-12-27 14:09:56 +00:00
<param name= "widget" > The widget to be attached to the table</param>
2003-03-15 22:50:24 +00:00
<param name= "left_attach" > The column number to attach the left side of <paramref name= "child" /> to.</param>
<param name= "right_attach" > The column number to attach the right side of <paramref name= "child" /> to.</param>
<param name= "top_attach" > The row number to attach the top of <paramref name= "child" /> to.</param>
<param name= "bottom_attach" > The row number to attach the bottom of <paramref name= "child" /> to.</param>
2005-05-23 20:41:51 +00:00
<summary > Packs a widget into the table with default packing options.</summary>
2003-03-15 22:50:24 +00:00
<remarks >
<para > To pack widgets into the table with more control over size and padding, use the alternative <see cref= "M:Gtk.Table.Attach(Gtk.Widget,uint,uint,uint,uint,Gtk.AttachOptions,Gtk.AttachOptions,uint,uint)" /> method.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Table (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Table (uint rows, uint columns, bool homogeneous);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "rows" Type= "System.UInt32" />
<Parameter Name= "columns" Type= "System.UInt32" />
<Parameter Name= "homogeneous" Type= "System.Boolean" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Creates a new Table widget.</summary>
<param name= "rows" > The number of rows in this table.</param>
<param name= "columns" > The number of columns in this table.</param>
2005-01-12 19:03:43 +00:00
<param name= "homogeneous" > If homogeneous is TRUE, the table boxes (cells) are resized to the size of the largest widget in the table. If homogeneous is FALSE, the size of a table boxes is dictated by the tallest widget in its same row, and the widest widget in its column (i.e. all cells are the same).</param>
2003-03-15 22:50:24 +00:00
<remarks >
2005-11-23 21:36:25 +00:00
<para > The size of the table can be altered after its creation using the <see cref= "M:Gtk.Table.Resize" /> method.</para>
2003-03-15 22:50:24 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "DefaultRowSpacing" >
<MemberSignature Language= "C#" Value= "public uint DefaultRowSpacing { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Retrieve the spacing that gets placed between newly added rows by default.</summary>
2005-05-23 20:41:51 +00:00
<value > Spacing between rows that will be added, in pixels.</value>
2003-03-15 22:50:24 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "DefaultColSpacing" >
<MemberSignature Language= "C#" Value= "public uint DefaultColSpacing { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Docs >
2004-08-29 04:47:18 +00:00
<summary > The default number of pixels between columns.</summary>
2005-05-23 20:41:51 +00:00
<value > A <see cref= "T:System.UInt32" /> .</value>
2004-11-05 21:25:40 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ColumnSpacing" >
<MemberSignature Language= "C#" Value= "public uint ColumnSpacing { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2004-08-29 04:47:18 +00:00
<summary > The number of pixels between columns if it isn't the default value.</summary>
2005-05-23 20:41:51 +00:00
<value > A <see cref= "T:System.UInt32" /> .</value>
2004-11-05 21:25:40 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2005-12-09 23:12:49 +00:00
<AttributeName > GLib.Property(Name="column-spacing")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "NColumns" >
<MemberSignature Language= "C#" Value= "public uint NColumns { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Manage the number of columns in this Table.</summary>
2005-05-23 20:41:51 +00:00
<value > The number of columns this table currently has.</value>
2003-03-15 22:50:24 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2005-12-09 23:12:49 +00:00
<AttributeName > GLib.Property(Name="n-columns")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Homogeneous" >
<MemberSignature Language= "C#" Value= "public bool Homogeneous { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Manage whether all cells must be of equal size.</summary>
2005-05-23 20:41:51 +00:00
<value >
<see langword= "true" /> if all cells are currently equally sized, <see langword= "false" /> otherwise.</value>
2003-03-15 22:50:24 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="homogeneous")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "RowSpacing" >
<MemberSignature Language= "C#" Value= "public uint RowSpacing { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2004-08-29 04:47:18 +00:00
<summary > The space between table rows.</summary>
2005-05-23 20:41:51 +00:00
<value >
<see cref= "T:System.UInt32" /> .</value>
2004-11-05 21:25:40 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2005-12-09 23:12:49 +00:00
<AttributeName > GLib.Property(Name="row-spacing")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "NRows" >
<MemberSignature Language= "C#" Value= "public uint NRows { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-08 21:09:16 +00:00
<summary > Manage the number of rows in this Table.</summary>
2005-05-23 20:41:51 +00:00
<value > The number of rows this table currently has.</value>
2003-03-15 22:50:24 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2005-12-09 23:12:49 +00:00
<AttributeName > GLib.Property(Name="n-rows")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<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.Table" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "protected Table (GLib.GType gtype);" />
2003-03-07 01:30:00 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "gtype" Type= "GLib.GType" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2006-01-17 19:19:58 +00:00
</Type>