TheSwamp

Code Red => .NET => Topic started by: tjr on January 03, 2008, 02:48:21 PM

Title: Insertion Point of a Table.
Post by: tjr on January 03, 2008, 02:48:21 PM
Anyhow have any pointers on changing the insertion point of a table from the default, which is upper left to upper right?
Title: Re: Insertion Point of a Table.
Post by: T.Willey on January 03, 2008, 03:09:02 PM
Look at the Position property.
Title: Re: Insertion Point of a Table.
Post by: tjr on January 03, 2008, 03:53:04 PM
Look at the Position property.

Position is a Point3d. How would I go about using this to change the insertion point?
Title: Re: Insertion Point of a Table.
Post by: sinc on January 03, 2008, 04:19:50 PM
The Position is the insertion point.  So changing it won't change the justification from the upper-left to the upper-right, it will move the entire table.

But you can change it like this:

Code: [Select]
table.Position = new Point3d(x,y,z);
As far as changing the justification, I'm not sure.  Tables are subclassed from Blocks, so you might be able to set an X-scale-factor of -1.  Or maybe that FlowDirection property might help.  Or maybe it's impossible, I don't know.