2003-02-21 18:59:11 +00:00
<Type Name= "VBox" FullName= "Gtk.VBox" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Lee Mallabone" Value= "public class VBox : Gtk.Box" />
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 >
2005-09-12 06:32:05 +00:00
<summary > A VBox is a specific type of <see cref= "T:Gtk.Container" /> for packing widgets vertically.
2007-03-15 15:25:19 +00:00
<example > <code lang= "C#" >
using System;
using Gtk;
class VBoxTester {
static void Main ()
{
Application.Init ();
Window myWindow = new Window ("VBox Widget");
myWindow.SetDefaultSize (250, 100);
VBox myBox = new VBox (false, 4);
//Add the box to a Window container
myWindow.Add (myBox);
// Add some buttons to the container
VBoxTester.AddButton (myBox);
VBoxTester.AddButton (myBox);
VBoxTester.AddButton (myBox);
myWindow.ShowAll ();
Application.Run ();
}
static void AddButton (VBox box)
{
box.PackStart (new Button ("Button"), true, false, 0);
}
}
</code> </example> <example > <code lang= "Visual Basic .NET" >
Imports System
Imports Gtk
Class VBoxTester
Shared Sub Main ()
Application.Init ()
Dim myWindow As New Window ("VBox Widget")
Dim myBox As New VBox (False, 0)
' Add the box to a Window container
myWindow.Add (myBox)
myWindow.SetDefaultSize (250, 100)
' Add some buttons to the box
VBoxTester.AddButton (myBox)
VBoxTester.AddButton (myBox)
VBoxTester.AddButton (myBox)
myWindow.ShowAll ()
Application.Run ()
End Sub
Shared Sub AddButton (ByVal box As VBox)
box.PackStart (New Button ("Button"), True, False, 0)
End Sub
End Class
</code> </example> </summary>
2006-08-08 05:34:34 +00:00
<remarks >
<para > Other ways of laying out widgets include using a horizontal box, (see <see cref= "T:Gtk.HBox" /> ), a table, (see <see cref= "T:Gtk.Table" /> ), button boxes, etc.</para>
<para >
Useful methods for manipulating boxes can be found in the superclass for HBox, <see cref= "T:Gtk.Box" /> .
</para>
<para > Here is a simple example of the class' usage:</para>
<example >
2005-09-12 06:32:05 +00:00
<code lang= "C#" >
using System;
using Gtk;
class VBoxTester {
static void Main ()
{
Application.Init ();
Window myWindow = new Window ("VBox Widget");
VBox myBox = new VBox (false, 4);
//Add the box to a Window container
myWindow.Add (myBox);
myWindow.ShowAll ();
Application.Run ();
}
static void AddButton (VBox box)
{
box.PackStart (new Button ("Button"), true, false, 0);
}
}
</code>
2006-08-08 05:34:34 +00:00
</example>
2003-02-23 07:26:30 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Box</BaseTypeName>
</Base>
2006-08-08 05:34:34 +00:00
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public VBox (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 VBox (bool homogeneous, int spacing);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "homogeneous" Type= "System.Boolean" />
<Parameter Name= "spacing" Type= "System.Int32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > The main way to create a new VBox</summary>
2003-02-23 07:26:30 +00:00
<param name= "homogeneous" > If <see langword= "true" /> , all widgets in the box are forced to be equally sized.</param>
2003-02-18 21:50:19 +00:00
<param name= "spacing" > The number of pixels to place between each widget in the box.</param>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GType" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<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 GObject type for <see cref= "T:Gtk.VBox" /> .</remarks>
2003-02-12 02:00:12 +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 VBox (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:14:42 +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:14:42 +00:00
<remarks > Chain to this constructor from subclasses when you manually register a <see cref= "T:GLib.GType" /> 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 >
2007-01-16 16:18:05 +00:00
<AttributeName > System.Obsolete</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2004-05-27 19:02:19 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public VBox ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > VBox Constructor.</summary>
<remarks > Instantiates a <see cref= "T:Gtk.VBox" /> object using default values for the spacing and homogeneous attributes.</remarks>
2004-05-27 19:02:19 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2007-04-17 17:46:02 +00:00
</Type>