[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-gtk-sharp-list
Subject: Re: [Gtk-sharp-list] TreeViewColumn alignment
From: Brad Taylor <brad () getcoded ! net>
Date: 2005-06-27 16:26:19
Message-ID: 1119889579.24342.1.camel () localhost ! localdomain
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi,
> Please help me on how to right align a column in
> Gtk.TreeViewColumn
>
> My current column definitions are
>
> col = new TreeViewColumn ();
> colr = new CellRendererText ();
> col.Title = "Expense";
> col.PackStart (colr, true);
> col.AddAttribute (colr, "text", 2);
> col.Alignment = 0.0f;
> col.Resizable = true;
> tv.AppendColumn (col);
I believe you want to set col.Alignment = 1.0f to make the text in the
column header right aligned.
Hope this helps.
-Brad
--
Brad Taylor
Genome Software LLC
http://www.getcoded.net
["signature.asc" (application/pgp-signature)]
_______________________________________________
Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic