Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Wiki  API  Corporate

com.aspose.powerpoint
Class Portion

java.lang.Object
  extended by com.aspose.powerpoint.Portion

public final class Portion
extends java.lang.Object

Represents the portion of a text paragraph.


Constructor Summary
Portion()
          Initializes a new instance of the Portion class.
Portion(Portion portion)
          Initializes a new instance of the Portion class.
Portion(java.lang.String str)
          Initializes a new instance of the Portion class.
 
Method Summary
 short getEscapement()
          Returns superscript or subscript text.
 java.awt.Color getFontColor()
          Returns the color of a portion.
 short getFontHeight()
          Returns the font height of a portion.
 short getFontIndex()
          Returns the index of the used font in a Fonts collection.
 short getSymbolFontIndex()
          Returns the index of the font used for special symbols in a Fonts collection.
 java.lang.String getText()
          Returns the plain text of a portion.
 boolean isFontBold()
          Determines whether the font is bold.
 boolean isFontEmbossed()
          Determines whether the font is embossed.
 boolean isFontItalic()
          Determines whether the font is italic
 boolean isFontShadow()
          Determines whether the font has shadow.
 boolean isFontUnderline()
          Determines whether the font is underlined.
 void setEscapement(short value)
          Sets superscript or subscript text.
 void setFontBold(boolean value)
          Sets whether the font is bold.
 void setFontColor(java.awt.Color value)
          Sets the color of a portion.
 void setFontEmbossed(boolean value)
          Sets whether the font is embossed.
 void setFontHeight(short value)
          Sets the font height of a portion.
 void setFontIndex(short value)
          Sets the index of the used font in a Fonts collection.
 void setFontItalic(boolean value)
          Sets whether the font is italic.
 void setFontShadow(boolean value)
          Sets whether the font has shadow.
 void setFontUnderline(boolean value)
          Sets whether the font is underlined.
 void setSymbolFontIndex(short value)
          Sets the index of the font used for special symbols in a Fonts collection.
 void setText(java.lang.String value)
          Sets the plain text of a portion.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Portion

public Portion()
Initializes a new instance of the Portion class.


Portion

public Portion(java.lang.String str)
Initializes a new instance of the Portion class.

Parameters:
str - text string to initialize new Portion class.

Portion

public Portion(Portion portion)
Initializes a new instance of the Portion class.

Parameters:
portion - Portion object to clone.
Method Detail

isFontBold

public boolean isFontBold()
Determines whether the font is bold.

Returns:
true if the font is bold.

setFontBold

public void setFontBold(boolean value)
Sets whether the font is bold.

Parameters:
value - true to make bold font.

isFontItalic

public boolean isFontItalic()
Determines whether the font is italic

Returns:
true if the font is italic.

setFontItalic

public void setFontItalic(boolean value)
Sets whether the font is italic.

Parameters:
value - true to make italic font.

isFontUnderline

public boolean isFontUnderline()
Determines whether the font is underlined.

Returns:
true if the font is underlined.

setFontUnderline

public void setFontUnderline(boolean value)
Sets whether the font is underlined.

Parameters:
value - true to make underlined font.

isFontShadow

public boolean isFontShadow()
Determines whether the font has shadow.

Returns:
true if the font has shadow.

setFontShadow

public void setFontShadow(boolean value)
Sets whether the font has shadow.

Parameters:
value - true to make font with shadow.

isFontEmbossed

public boolean isFontEmbossed()
Determines whether the font is embossed.

Returns:
true if the font is embossed.

setFontEmbossed

public void setFontEmbossed(boolean value)
Sets whether the font is embossed.

Parameters:
value - true to make embossed font.

getFontHeight

public short getFontHeight()
Returns the font height of a portion.

Returns:
The font height.

setFontHeight

public void setFontHeight(short value)
Sets the font height of a portion.

Parameters:
value - new font height.

getFontColor

public java.awt.Color getFontColor()
Returns the color of a portion.

Returns:
The color of a portion.

setFontColor

public void setFontColor(java.awt.Color value)
Sets the color of a portion.

Parameters:
value - new color for a portion.

getFontIndex

public short getFontIndex()
Returns the index of the used font in a Fonts collection.

Returns:
The font index.

setFontIndex

public void setFontIndex(short value)
Sets the index of the used font in a Fonts collection.

Parameters:
value - index of the new font.

getSymbolFontIndex

public short getSymbolFontIndex()
Returns the index of the font used for special symbols in a Fonts collection.

Returns:
The font index.

setSymbolFontIndex

public void setSymbolFontIndex(short value)
Sets the index of the font used for special symbols in a Fonts collection.

Parameters:
value - index of the new font.

getText

public java.lang.String getText()
Returns the plain text of a portion.

Returns:
The plain text string.

setText

public void setText(java.lang.String value)
Sets the plain text of a portion.

Parameters:
value - the plain text string.

getEscapement

public short getEscapement()
Returns superscript or subscript text.

Returns:
value from -100% (subscript) to 100% (superscript).

setEscapement

public void setEscapement(short value)
Sets superscript or subscript text.

Parameters:
value - from -100% (subscript) to 100% (superscript).