- Code: Select all
var pre = new Presentation(pptxStream, FileFormat.Auto);
var autoShape = (IAutoShape)pre.Slides[0].Shapes[0];
var fontHeight = autoShape.TextFrame.TextRange.FontHeight;
Spire.Presentation version is 4.4.10
var pre = new Presentation(pptxStream, FileFormat.Auto);
var autoShape = (IAutoShape)pre.Slides[0].Shapes[0];
var fontHeight = autoShape.TextFrame.TextRange.FontHeight;
Presentation ppt = new Presentation();
ppt.LoadFromFile("pre004.pptx");
var autoShape = (IAutoShape)ppt.Slides[0].Shapes[0];
var fontHeight = autoShape.TextFrame.Paragraphs[0].TextRanges[0].FontHeight;