com.aspose.slides
Class Portion

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

public final class Portion
extends java.lang.Object

Represents a portion of a text.


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
 int getAnsiFontIndex()
           Returns or sets the index of a font in Fonts collection for ANSI text writings.
 int getAsianOrComplexFontIndex()
           Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings.
 short getEscapement()
           Returns or sets superscript or subscript text.
 Field getField()
           Returns or sets a field object for this portion.
 boolean getFontBold()
           Determines whether the font is Bold.
 java.awt.Color getFontColor()
           
 short getFontColorIndex()
           Returns or sets the index of a color in a color scheme or <b>-1</b> for scheme-independed color.
 boolean getFontEmbossed()
           Determines whether the font is embossed.
 short getFontHeight()
           Returns or sets the font height of a portion.
 int getFontIndex()
           Returns or sets the index of a font in Fonts collection.
 boolean getFontItalic()
           Determines whether the font is Italic.
 boolean getFontShadow()
           Determines whether the font has shadow.
 boolean getFontUnderline()
           Determines whether the font is underlined.
 int getRawAnsiFontIndex()
           Returns or sets the index of a font in Fonts collection for ANSI text writings.
 int getRawAsianOrComplexFontIndex()
           Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings.
 short getRawEscapement()
           Returns or sets the superscript or subscript text.
 java.awt.Color getRawFontColor()
           
 short getRawFontHeight()
           Returns or sets the font height of a portion.
 int getRawFontIndex()
           Returns or sets the index of a font in Fonts collection.
 int getRawSymbolFontIndex()
           Returns or sets the index of a font in Fonts collection for special symbols.
 int getSymbolFontIndex()
           Returns or sets the index of a font in Fonts collection for special symbols.
 java.lang.String getText()
           Gets or sets the plain text of a portion.
 void setAnsiFontIndex(int value)
           
 void setAsianOrComplexFontIndex(int value)
           
 void setEscapement(short value)
           
 void setField(Field value)
           
 void setFontBold(boolean value)
           
 void setFontColor(java.awt.Color value)
           
 void setFontColorIndex(short value)
           
 void setFontEmbossed(boolean value)
           
 void setFontHeight(short value)
           
 void setFontIndex(int value)
           
 void setFontItalic(boolean value)
           
 void setFontShadow(boolean value)
           
 void setFontUnderline(boolean value)
           
 void setRawAnsiFontIndex(int value)
           
 void setRawAsianOrComplexFontIndex(int value)
           
 void setRawEscapement(short value)
           
 void setRawFontColor(java.awt.Color value)
           
 void setRawFontHeight(short value)
           
 void setRawFontIndex(int value)
           
 void setRawSymbolFontIndex(int value)
           
 void setSymbolFontIndex(int value)
           
 void setText(java.lang.String value)
           
 
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.


Portion

public Portion(Portion portion)

Initializes a new instance of the Portion class.

Method Detail

getFontBold

public boolean getFontBold()

Determines whether the font is Bold. Read/write bool.


setFontBold

public void setFontBold(boolean value)

getFontItalic

public boolean getFontItalic()

Determines whether the font is Italic. Read/write bool.


setFontItalic

public void setFontItalic(boolean value)

getFontUnderline

public boolean getFontUnderline()

Determines whether the font is underlined. Read/write bool.


setFontUnderline

public void setFontUnderline(boolean value)

getFontShadow

public boolean getFontShadow()

Determines whether the font has shadow. Read/write bool.


setFontShadow

public void setFontShadow(boolean value)

getFontEmbossed

public boolean getFontEmbossed()

Determines whether the font is embossed. Read/write bool.


setFontEmbossed

public void setFontEmbossed(boolean value)

getFontHeight

public short getFontHeight()

Returns or sets the font height of a portion. Read/write short.


setFontHeight

public void setFontHeight(short value)

getFontColor

public java.awt.Color getFontColor()

setFontColor

public void setFontColor(java.awt.Color value)

getFontColorIndex

public short getFontColorIndex()

Returns or sets the index of a color in a color scheme or <b>-1</b> for scheme-independed color. Read/write short


setFontColorIndex

public void setFontColorIndex(short value)

getFontIndex

public int getFontIndex()

Returns or sets the index of a font in Fonts collection. Read/write int.


setFontIndex

public void setFontIndex(int value)

getSymbolFontIndex

public int getSymbolFontIndex()

Returns or sets the index of a font in Fonts collection for special symbols. Read/write int.


setSymbolFontIndex

public void setSymbolFontIndex(int value)

getAsianOrComplexFontIndex

public int getAsianOrComplexFontIndex()

Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings. Read/write int.


setAsianOrComplexFontIndex

public void setAsianOrComplexFontIndex(int value)

getAnsiFontIndex

public int getAnsiFontIndex()

Returns or sets the index of a font in Fonts collection for ANSI text writings. Read/write int.


setAnsiFontIndex

public void setAnsiFontIndex(int value)

getText

public java.lang.String getText()

Gets or sets the plain text of a portion.

Value: The text.


setText

public void setText(java.lang.String value)

getEscapement

public short getEscapement()

Returns or sets superscript or subscript text. Value from -100% (subscript) to 100% (superscript). Read/write short.


setEscapement

public void setEscapement(short value)

getRawFontHeight

public short getRawFontHeight()

Returns or sets the font height of a portion. <b>-1</b> means height is undefined and should be inherited from the Master. Read/write short.


setRawFontHeight

public void setRawFontHeight(short value)

getRawFontColor

public java.awt.Color getRawFontColor()

setRawFontColor

public void setRawFontColor(java.awt.Color value)

getRawFontIndex

public int getRawFontIndex()

Returns or sets the index of a font in Fonts collection. <b>-1</b> means font is undefined and should be inherited from the Master. Read/write int.


setRawFontIndex

public void setRawFontIndex(int value)

getRawSymbolFontIndex

public int getRawSymbolFontIndex()

Returns or sets the index of a font in Fonts collection for special symbols. <b>-1</b> means font is undefined and should be inherited from the Master. Read/write int.


setRawSymbolFontIndex

public void setRawSymbolFontIndex(int value)

getRawAsianOrComplexFontIndex

public int getRawAsianOrComplexFontIndex()

Returns or sets the index of a font in Fonts collection for East Asian and complex text layout writings. <b>-1</b> means font is undefined and should be inherited from the Master. Read/write int.


setRawAsianOrComplexFontIndex

public void setRawAsianOrComplexFontIndex(int value)

getRawAnsiFontIndex

public int getRawAnsiFontIndex()

Returns or sets the index of a font in Fonts collection for ANSI text writings. <b>-1</b> means font is undefined and should be inherited from the Master. Read/write int.


setRawAnsiFontIndex

public void setRawAnsiFontIndex(int value)

getRawEscapement

public short getRawEscapement()

Returns or sets the superscript or subscript text. Value from -100% (subscript) to 100% (superscript). <b>-101</b> means value is undefined and should be inherited from the Master. Read/write short.


setRawEscapement

public void setRawEscapement(short value)

getField

public Field getField()

Returns or sets a field object for this portion. Read/write Field.


setField

public void setField(Field value)