Free Support Forum -

Set position of Char


I have a shape with multiple texts in it, saved as Chars. I would like to specify the exact position of each Char. Is there any way i could do that?


The TextXForm class allows to set the position of text inside the shape in the same way as we can set Text Block Format section in the shapesheet with Microsoft Visio application. Please refer to this help topic: Rotate and Set Position of the Shape Text. Char element contains the formatting attributes for the shape’s text, such as font, color, text style, case, position relative to the baseline, and point size. You can retrieve a Char element from the shape class by index as below:


shape.Chars[0].Pos.Value = PosValue.Superscript;

Best Regards,
Imran Rafique