com.aspose.slides
Class TextStyle

java.lang.Object
  extended by com.aspose.slides.TextStyle
All Implemented Interfaces:
IPresentationComponent, ISlideComponent, ITextStyle

public class TextStyle
extends java.lang.Object
implements ITextStyle

Summary description for TextStyle.


Field Summary
 byte MaxLevelCount
           Maximum count of style levels that can be defined.
 
Method Summary
 IParagraphFormat getDefaultParagraphFormat()
           Default paragraph propertiies.
 IParagraphFormat getLevel(int index)
           If level of style exist returns it, otherwise returns null.
 IPresentation getPresentation()
           
 IBaseSlide getSlide()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MaxLevelCount

public final byte MaxLevelCount

Maximum count of style levels that can be defined. Use it with GetLevel(int index)


               
 
for (int i = 0; i < TextStyle.LevelCount; i++)
 {
     IParagraphFormat paragraphFormat = GetLevel(i);
     ...
 }

See Also:
Constant Field Values
Method Detail

getLevel

public IParagraphFormat getLevel(int index)

If level of style exist returns it, otherwise returns null.

Specified by:
getLevel in interface ITextStyle
Parameters:
index - Zero-based index of level. Must lay in 0..8 interval.
Returns:
Formatting of level ParagraphFormat.

getDefaultParagraphFormat

public IParagraphFormat getDefaultParagraphFormat()

Default paragraph propertiies.

Specified by:
getDefaultParagraphFormat in interface ITextStyle

getSlide

public IBaseSlide getSlide()
Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()
Specified by:
getPresentation in interface IPresentationComponent