com.aspose.slides
Class TextStyle

java.lang.Object
  extended by com.aspose.slides.PVIObject
      extended by com.aspose.slides.TextStyle
All Implemented Interfaces:
ITextStyle

public class TextStyle
extends PVIObject
implements ITextStyle

This class contains the text style formatting properties.


Field Summary
static 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.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 IPresentationComponent getParent_IPresentationComponent()
           
 long getVersion()
           
 
Methods inherited from class com.aspose.slides.PVIObject
equals, getParent_Immediate, getParent_IPresentationComponent, getPresentation, getSlide, getVersion, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MaxLevelCount

public static final byte MaxLevelCount

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


               
 
for (int i = 0; i < textStyle.MaxLevelCount; i++)
 {
 IParagraphFormat paragraphFormat = textStyle.getLevel(i);
 ...
 }

See Also:
Constant Field Values
Method Detail

getLevel

public final 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 IParagraphFormat.

getDefaultParagraphFormat

public final IParagraphFormat getDefaultParagraphFormat()

Default paragraph propertiies. Read-only IParagraphFormat.

Specified by:
getDefaultParagraphFormat in interface ITextStyle

getParent_IPresentationComponent

public IPresentationComponent getParent_IPresentationComponent()

getVersion

public long getVersion()

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.



Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.