[Gtk-sharp-list] TreeViewColumn alignment

Brad Taylor brad at getcoded.net
Mon Jun 27 12:26:19 EDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://galactus.ximian.com/pipermail/gtk-sharp-list/attachments/20050627/2672b935/attachment.bin


More information about the Gtk-sharp-list mailing list