Free Support Forum - aspose.com

Unit of width/heigh/...?

Hi Aspose exprts,

I have some questions about unit in Aspose Slides:
1. What is the unit of width / height of shape/placeholder/textframe/pictureframe? Is it in pixel or inch or what else?
2. Assume that I have a portion with text “Click” in a paragraph. Can I calculate its position, width and height in the unit that I mentioned in the question 1?

Hi Vuong,

Thanks for your interest in Aspose.Slides.

Shape width/height is in pixels and resolution of slides is 576 pixels per inch. I regret to share with you that there is no width and height properties of portion class. However you can determine the height of portion with FontHeight property of Portion class. Please visit documentation of Portion class.