|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Portion
public final class Portion
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 | |
---|---|
int |
getAnsiFontIndex()
Returns the index of a font in the Fonts collection for ANSI text writings. |
int |
getAsianOrComplexFontIndex()
Returns the index of the font used for East Asian and complex text in a Fonts collection. |
short |
getEscapement()
Returns superscript or subscript text. |
java.awt.Color |
getFontColor()
Returns the color of a portion. |
short |
getFontColorIndex()
Returns index of color in color scheme or (-1) for scheme-independent color. |
short |
getFontHeight()
Returns the font height of a portion. |
int |
getFontIndex()
Returns the index of the used font in a Fonts collection. |
com.aspose.slides.ppt.LevelStyle |
getMasterStyle()
|
int |
getRawAnsiFontIndex()
Returns the index of a font in Fonts collection for ANSI text layout writings. |
int |
getRawAsianOrComplexFontIndex()
Returns the index of a font in Fonts collection for East Asian and complex text layout writings. |
short |
getRawEscapement()
Returns superscript or subscript text. |
java.awt.Color |
getRawFontColor()
Returns a color of a portion. |
short |
getRawFontHeight()
Returns font height of a portion. |
int |
getRawFontIndex()
Returns the index of a font in Fonts collection. |
int |
getRawSymbolFontIndex()
Returns the index of a font in Fonts collection for special symbols. |
int |
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 |
setAnsiFontIndex(int value)
Sets the index of a font in the Fonts collection for ANSI text writings. |
void |
setAsianOrComplexFontIndex(int value)
Sets the index of the font used for East Asian and complex text in a Fonts collection. |
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 |
setFontColorIndex(short value)
Sets index of color in color scheme or (-1) for scheme-independent color. |
void |
setFontEmbossed(boolean value)
Sets whether the font is embossed. |
void |
setFontHeight(short value)
Sets the font height of a portion. |
void |
setFontIndex(int 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 |
setRawAnsiFontIndex(int value)
Sets the index of a font in Fonts collection for ANSI text layout writings. |
void |
setRawAsianOrComplexFontIndex(int value)
Sets the index of a font in Fonts collection for East Asian and complex text layout writings. |
void |
setRawEscapement(short value)
Sets superscript or subscript text. |
void |
setRawFontColor(java.awt.Color value)
Sets a color of a portion. |
void |
setRawFontHeight(short value)
Sets font height of a portion. |
void |
setRawFontIndex(int value)
Sets the index of a font in Fonts collection. |
void |
setRawSymbolFontIndex(int value)
Sets the index of a font in Fonts collection for special symbols. |
void |
setSymbolFontIndex(int 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 |
---|
public Portion()
public Portion(java.lang.String str)
str
- text string to initialize new Portion class.public Portion(Portion portion)
portion
- Portion object to clone.Method Detail |
---|
public boolean isFontBold()
isFontBold
in interface IFontStyle
public void setFontBold(boolean value)
setFontBold
in interface IFontStyle
value
- true to make bold font.public boolean isFontItalic()
isFontItalic
in interface IFontStyle
public void setFontItalic(boolean value)
setFontItalic
in interface IFontStyle
value
- true to make italic font.public boolean isFontUnderline()
isFontUnderline
in interface IFontStyle
public void setFontUnderline(boolean value)
setFontUnderline
in interface IFontStyle
value
- true to make underlined font.public boolean isFontShadow()
isFontShadow
in interface IFontStyle
public void setFontShadow(boolean value)
setFontShadow
in interface IFontStyle
value
- true to make font with shadow.public boolean isFontEmbossed()
isFontEmbossed
in interface IFontStyle
public void setFontEmbossed(boolean value)
setFontEmbossed
in interface IFontStyle
value
- true to make embossed font.public short getFontHeight()
getFontHeight
in interface IFontStyle
public void setFontHeight(short value)
setFontHeight
in interface IFontStyle
value
- new font height.public java.awt.Color getFontColor()
getFontColor
in interface IFontStyle
public void setFontColor(java.awt.Color value)
setFontColor
in interface IFontStyle
value
- new color for a portion.public short getFontColorIndex()
getFontColorIndex
in interface IFontStyle
public void setFontColorIndex(short value)
setFontColorIndex
in interface IFontStyle
value
- Sets index of color in color scheme.public int getFontIndex()
getFontIndex
in interface IFontStyle
public void setFontIndex(int value)
setFontIndex
in interface IFontStyle
value
- index of the new font.public int getSymbolFontIndex()
getSymbolFontIndex
in interface IFontStyle
public void setSymbolFontIndex(int value)
setSymbolFontIndex
in interface IFontStyle
value
- index of the new font.public int getAsianOrComplexFontIndex()
getAsianOrComplexFontIndex
in interface IFontStyle
public void setAsianOrComplexFontIndex(int value)
setAsianOrComplexFontIndex
in interface IFontStyle
value
- index of the new font.public int getAnsiFontIndex()
getAnsiFontIndex
in interface IFontStyle
public void setAnsiFontIndex(int value)
setAnsiFontIndex
in interface IFontStyle
value
- index of the new font.public java.lang.String getText()
public void setText(java.lang.String value) throws PptEditException
value
- the plain text string.
PptEditException
public short getEscapement()
getEscapement
in interface IFontStyle
public void setEscapement(short value)
setEscapement
in interface IFontStyle
value
- from (-100%) - subscript to (100%) - superscript.public short getRawFontHeight()
getRawFontHeight
in interface IFontStyleRaw
public void setRawFontHeight(short value)
setRawFontHeight
in interface IFontStyleRaw
value
- Sets font height of a portion.public java.awt.Color getRawFontColor()
getRawFontColor
in interface IFontStyleRaw
public void setRawFontColor(java.awt.Color value)
setRawFontColor
in interface IFontStyleRaw
value
- public int getRawFontIndex()
getRawFontIndex
in interface IFontStyleRaw
public void setRawFontIndex(int value)
setRawFontIndex
in interface IFontStyleRaw
value
- the index of a font in Fonts collection.public int getRawSymbolFontIndex()
getRawSymbolFontIndex
in interface IFontStyleRaw
public void setRawSymbolFontIndex(int value)
setRawSymbolFontIndex
in interface IFontStyleRaw
value
- the index of a font in Fonts collection for special symbols.public int getRawAsianOrComplexFontIndex()
getRawAsianOrComplexFontIndex
in interface IFontStyleRaw
public void setRawAsianOrComplexFontIndex(int value)
setRawAsianOrComplexFontIndex
in interface IFontStyleRaw
value
- the index of a font in Fonts collection.public int getRawAnsiFontIndex()
getRawAnsiFontIndex
in interface IFontStyleRaw
public void setRawAnsiFontIndex(int value)
setRawAnsiFontIndex
in interface IFontStyleRaw
value
- the index of a font in Fonts collection.public short getRawEscapement()
getRawEscapement
in interface IFontStyleRaw
public void setRawEscapement(short value)
setRawEscapement
in interface IFontStyleRaw
value
- superscript or subscript text.public com.aspose.slides.ppt.LevelStyle getMasterStyle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |