mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-12 12:55:28 +00:00
parent
5f03bf3366
commit
be0cb0c025
|
@ -14,7 +14,8 @@
|
||||||
<Base>
|
<Base>
|
||||||
<BaseTypeName>Gtk.ComboBox</BaseTypeName>
|
<BaseTypeName>Gtk.ComboBox</BaseTypeName>
|
||||||
</Base>
|
</Base>
|
||||||
<Interfaces></Interfaces>
|
<Interfaces>
|
||||||
|
</Interfaces>
|
||||||
<Members>
|
<Members>
|
||||||
<Member MemberName="NewText">
|
<Member MemberName="NewText">
|
||||||
<MemberSignature Language="C#" Value="public static Gtk.ComboBoxEntry NewText ();" />
|
<MemberSignature Language="C#" Value="public static Gtk.ComboBoxEntry NewText ();" />
|
||||||
|
@ -80,8 +81,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Creates a new <see cref="T:Gtk.ComboBoxEntry" /> which has a <see cref="T:Gtk.Entry" /> as child and a list of strings as popup.</summary>
|
<summary>Creates a new <see cref="T:Gtk.ComboBoxEntry" /> which has a <see cref="T:Gtk.Entry" /> as child and a list of strings as popup.</summary>
|
||||||
<param name="model">a <see cref="T:Gtk.TreeModel" /></param>
|
<param name="model">a <see cref="T:Gtk.TreeModel" /> which holds the data.</param>
|
||||||
<param name="text_column">a <see cref="T:System.Int32" /></param>
|
<param name="text_column">a <see cref="T:System.Int32" /> which means the coluumn number (0 based) in the <see cref="T:Gtk.TreeModel" /> which contains the list of strings to display.</param>
|
||||||
<remarks />
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
|
|
@ -42,7 +42,7 @@ This class provides a simple mechanism of implementing the Model required by the
|
||||||
|
|
||||||
void PopulateStore ()
|
void PopulateStore ()
|
||||||
{
|
{
|
||||||
NodeStore store = new NodeStore (typeof (MyRow));
|
NodeStore store = new NodeStore (typeof (DemoNode));
|
||||||
DemoNode my_node = new DemoNode ("Miguel de Icaza", "miguel@ximian.com");
|
DemoNode my_node = new DemoNode ("Miguel de Icaza", "miguel@ximian.com");
|
||||||
store.AddNode (my_node);
|
store.AddNode (my_node);
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ Iteration: In new versions of Gtk# (2.0 and up) this class implements the <see c
|
||||||
void DumpColumnValues (NodeStore store, int col)
|
void DumpColumnValues (NodeStore store, int col)
|
||||||
{
|
{
|
||||||
foreach (object[] row in store)
|
foreach (object[] row in store)
|
||||||
Console.WriteLine ("Value of column {0} is {2}", col, row [col]);
|
Console.WriteLine ("Value of column {0} is {1}", col, row [col]);
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
</example>
|
</example>
|
||||||
|
|
Loading…
Reference in a new issue