This project is read-only.

GetElements and AnchorArea

Feb 8, 2013 at 2:27 AM
I wrote a View class to display multiline text.

It will generate many TextGDI instances which are returned by GetElements

It works well:
+------------+-----+------------+-------+
| order num  | ... | parts name | price |
+------------+-----+------------+-------+
| 201302-001 | ... | bolt1      | 10    |
|            |     | bolt2      | 200   |
|            |     | bolt3      | 3000  |
+------------+-----+------------+-------+
However I needed to use following AnchorArea:
text.AnchorArea = new DevAge.Drawing.AnchorArea(
    float.NaN,
    0,
    float.NaN,
    float.NaN,
    false,
    false);

I thought: the price column needs to be right aligned.
textGdi.AnchorArea = new DevAge.Drawing.AnchorArea(
    DevAge.Drawing.ContentAlignment.TopRight, 
    false);
And then:
+------------+-----+------------+-----------+
| order num  | ... | parts name | price     |
+------------+-----+------------+-----------+
| 201302-001 | ... | bolt1      |        10 |
|            |     | bolt2      |     200   |
|            |     | bolt3      | 3000      |
+------------+-----+------------+-----------+
Probably, wrong right aligned.

Any good idea?