I’m trying to read text style information and could use some help.
In the native XML file of a slide I can find something like
<p:txBody>
<a:bodyPr wrap="square" rtlCol="0">
<a:noAutofit/>
</a:bodyPr>
<a:lstStyle/>
<a:p>
<a:pPr marL="742950" lvl="1" indent="-285750" algn="ctr" defTabSz="914217">
<a:buFont typeface="Arial" panose="020B0604020202020204" pitchFamily="34" charset="0"/>
<a:buChar char="•"/>
</a:pPr>
<a:r>
<a:rPr lang="en-US" dirty="0">
<a:solidFill>
<a:srgbClr val="999999"/>
</a:solidFill>
</a:rPr>
<a:t>Text here.</a:t>
</a:r>
</a:p>
</p:txBody>
Note the attribute lvl="1"
and no sz
attribute.
To understand the effective text size, I would look into the file presentation.xml to find
<p:defaultTextStyle>
...
<a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1">
<a:defRPr sz="1800" kern="1200">
<a:solidFill>
<a:schemeClr val="tx1"/>
</a:solidFill>
<a:latin typeface="+mn-lt"/>
<a:ea typeface="+mn-ea"/>
<a:cs typeface="+mn-cs"/>
</a:defRPr>
</a:lvl2pPr>
</p:defaultTextStyle>
How can I obtain the same information from the Aspose objects? In Aspose.Slides.ParagraphFormat
I could not find the indentation level. And in Aspose.Slides.Presentation
I see Aspose.Slides.TextStyle DefaultTextStyle
but it does not carry information about lvl1pPr
to lvl9pPr
.