|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.OwnerHolder
com.spire.doc.documents.xml.DocumentSerializable
com.spire.doc.formatting.FormatBase
com.spire.doc.formatting.AttrCollection
com.spire.doc.formatting.WordAttrCollection
com.spire.doc.formatting.CharacterFormat
public class CharacterFormat
Constructor Summary | |
---|---|
CharacterFormat(IDocument doc)
Default constructor |
Method Summary | |
---|---|
boolean |
getAllCaps()
Gets AllCaps property of text. |
boolean |
getAllowContextualAlternates()
Gets a value indicating whether to allow contextual alternates. |
boolean |
getBidi()
Returns right-to-left property of text. |
boolean |
getBold()
Returns bold style |
boolean |
getBoldBidi()
Returns bold property for right-to-left text. |
Border |
getBorder()
Gets border. |
float |
getCharacterSpacing()
Returns space width between characters. |
boolean |
getDoubleStrike()
Returns double strikeout style. |
boolean |
getEmboss()
Gets emboss property of text. |
Emphasis |
getEmphasisMark()
Returns text emphasis mark |
boolean |
getEngrave()
Gets Engrave property of text. |
java.lang.String |
getFontName()
Returns font name |
java.lang.String |
getFontNameAscii()
Gets the font used for Latin text (characters with character codes from 0 through 127). |
java.lang.String |
getFontNameBidi()
Gets font name for right-to-left text. |
java.lang.String |
getFontNameFarEast()
Gets East Asian font name. |
java.lang.String |
getFontNameNonFarEast()
Gets font used for characters with character codes from 128 through 255. |
float |
getFontSize()
Returns font size |
float |
getFontSizeBidi()
Returns font size of the right-to-left text. |
FontTypeHint |
getFontTypeHint()
Gets the font type hint. |
boolean |
getHidden()
Gets Hidden property of text. |
java.awt.Color |
getHighlightColor()
Gets highlight color of text. |
boolean |
getItalic()
Returns italic style |
boolean |
getItalicBidi()
Returns italic property for right-to-left text. |
LigatureType |
getLigaturesType()
Gets the ligatures type. |
short |
getLocaleIdASCII()
Gets the ASCII locale id . |
short |
getLocaleIdFarEast()
Gets the far east locale id . |
NumberFormType |
getNumberFormType()
Gets the number form type. |
NumberSpaceType |
getNumberSpaceType()
Gets the number space type. |
float |
getPosition()
Returns text vertical position. |
StylisticSetType |
getStylisticSetType()
Gets the stylistic set type. |
SubSuperScript |
getSubSuperScript()
Returns subscript/superscript mode |
java.awt.Color |
getTextBackgroundColor()
Returns text background color |
java.awt.Color |
getTextColor()
Returns text color |
short |
getTextScale()
Gets a value specifies that the percentage by which the contents of a run shall be expanded or compressed with respect to its normal(100%) character width,with a minimun width of 1% and maximum width of 600%. |
UnderlineStyle |
getUnderlineStyle()
Returns underline style |
boolean |
isOutLine()
Get outline character property. |
void |
isOutLine(boolean value)
Set outline character property. |
boolean |
isShadow()
Gets shadow property of text. |
void |
isShadow(boolean value)
Sets shadow property of text. |
boolean |
isSmallCaps()
Gets IsSmallCaps property of text. |
void |
isSmallCaps(boolean value)
Sets IsSmallCaps property of text. |
boolean |
isStrikeout()
Returns strikeout style. |
void |
isStrikeout(boolean value)
Sets strikeout style. |
void |
setAllCaps(boolean value)
Sets AllCaps property of text. |
void |
setAllowContextualAlternates(boolean value)
Sets a value indicating whether to allow contextual alternates. |
void |
setBidi(boolean value)
Sets right-to-left property of text. |
void |
setBold(boolean value)
Sets bold style |
void |
setBoldBidi(boolean value)
Sets bold property for right-to-left text. |
void |
setCharacterSpacing(float value)
Sets space width between characters. |
void |
setDoubleStrike(boolean value)
Sets double strikeout style. |
void |
setEmboss(boolean value)
Sets emboss property of text. |
void |
setEmphasisMark(Emphasis value)
Sets text emphasis mark |
void |
setEngrave(boolean value)
Sets Engrave property of text. |
void |
setFontName(java.lang.String value)
Sets font name |
void |
setFontNameAscii(java.lang.String value)
Sets the font used for Latin text (characters with character codes from 0 through 127). |
void |
setFontNameBidi(java.lang.String value)
Sets font name for right-to-left text. |
void |
setFontNameFarEast(java.lang.String value)
Sets East Asian font name. |
void |
setFontNameNonFarEast(java.lang.String value)
Sets font used for characters with character codes from 128 through 255. |
void |
setFontSize(float value)
Sets font size |
void |
setFontSizeBidi(float value)
Sets font size of the right-to-left text. |
void |
setFontTypeHint(FontTypeHint value)
Sets the font type hint. |
void |
setHidden(boolean value)
Sets Hidden property of text. |
void |
setHighlightColor(java.awt.Color value)
Sets highlight color of text. |
void |
setItalic(boolean value)
Sets italic style |
void |
setItalicBidi(boolean value)
Sets italic property for right-to-left text. |
void |
setLigaturesType(LigatureType value)
Sets the ligatures type. |
void |
setLocaleIdASCII(short value)
Sets the ASCII locale id . |
void |
setLocaleIdFarEast(short value)
Sets the far east locale id . |
void |
setNumberFormType(NumberFormType value)
Sets the number form type. |
void |
setNumberSpaceType(NumberSpaceType value)
Sets the number space type. |
void |
setPosition(float value)
Sets text vertical position. |
void |
setStylisticSetType(StylisticSetType value)
Sets the stylistic set type. |
void |
setSubSuperScript(SubSuperScript value)
Sets subscript/superscript mode |
void |
setTextBackgroundColor(java.awt.Color value)
Sets text background color |
void |
setTextColor(java.awt.Color value)
Sets text color |
void |
setTextScale(short value)
Sets a value specifies that the percentage by which the contents of a run shall be expanded or compressed with respect to its normal(100%) character width,with a minimun width of 1% and maximum width of 600%. |
void |
setUnderlineStyle(UnderlineStyle value)
Sets underline style |
Methods inherited from class com.spire.doc.formatting.FormatBase |
---|
clearFormatting, hasKey, isDefault |
Methods inherited from class com.spire.doc.OwnerHolder |
---|
getDocument |
Constructor Detail |
---|
public CharacterFormat(IDocument doc)
doc
- IDocumentMethod Detail |
---|
public java.lang.String getFontName()
public void setFontName(java.lang.String value)
value
- font namepublic float getFontSize()
public void setFontSize(float value)
value
- font sizepublic boolean getBold()
public void setBold(boolean value)
value
- is bold or notpublic boolean getItalic()
public void setItalic(boolean value)
value
- is italic or notpublic boolean isStrikeout()
public void isStrikeout(boolean value)
value
- strikeout style.public boolean getDoubleStrike()
public void setDoubleStrike(boolean value)
value
- double strikeout style.public UnderlineStyle getUnderlineStyle()
public void setUnderlineStyle(UnderlineStyle value)
value
- underline stylepublic Emphasis getEmphasisMark()
public void setEmphasisMark(Emphasis value)
value
- Emphasispublic java.awt.Color getTextColor()
public void setTextColor(java.awt.Color value)
value
- text colorpublic short getTextScale()
public void setTextScale(short value)
value
- textScale valuepublic java.awt.Color getTextBackgroundColor()
public void setTextBackgroundColor(java.awt.Color value)
value
- background colorpublic SubSuperScript getSubSuperScript()
public void setSubSuperScript(SubSuperScript value)
value
- SubSuperScriptpublic float getCharacterSpacing()
public void setCharacterSpacing(float value)
value
- CharacterSpacingpublic float getPosition()
public void setPosition(float value)
value
- Positionpublic boolean isShadow()
public void isShadow(boolean value)
value
- is shadow or notpublic boolean getEmboss()
public void setEmboss(boolean value)
value
- is emboss or notpublic boolean getEngrave()
public void setEngrave(boolean value)
value
- is Engrave or notpublic boolean getHidden()
public void setHidden(boolean value)
value
- is hidden or notpublic boolean getAllCaps()
public void setAllCaps(boolean value)
value
- is allcaps or notpublic boolean isSmallCaps()
public void isSmallCaps(boolean value)
value
- is SmallCaps or notpublic boolean getBidi()
public void setBidi(boolean value)
value
- is bidi or notpublic boolean getBoldBidi()
public void setBoldBidi(boolean value)
value
- is BoldBidi or notpublic boolean getItalicBidi()
public void setItalicBidi(boolean value)
value
- is ItalicBidi or notpublic float getFontSizeBidi()
public void setFontSizeBidi(float value)
value
- font size bidipublic java.awt.Color getHighlightColor()
public void setHighlightColor(java.awt.Color value)
value
- higlight colorpublic Border getBorder()
public java.lang.String getFontNameAscii()
public void setFontNameAscii(java.lang.String value)
value
- font name asciipublic java.lang.String getFontNameBidi()
public void setFontNameBidi(java.lang.String value)
value
- font name bidipublic java.lang.String getFontNameFarEast()
public void setFontNameFarEast(java.lang.String value)
value
- font name FarEastpublic java.lang.String getFontNameNonFarEast()
public void setFontNameNonFarEast(java.lang.String value)
value
- font name NonFarEastpublic FontTypeHint getFontTypeHint()
public void setFontTypeHint(FontTypeHint value)
value
- FontTypeHintpublic short getLocaleIdASCII()
public void setLocaleIdASCII(short value)
value
- LocaleIdASCIIpublic short getLocaleIdFarEast()
public void setLocaleIdFarEast(short value)
value
- LocaleIdFarEastpublic boolean isOutLine()
public void isOutLine(boolean value)
value
- is outline or notpublic boolean getAllowContextualAlternates()
public void setAllowContextualAlternates(boolean value)
value
- AllowContextualAlternatespublic LigatureType getLigaturesType()
public void setLigaturesType(LigatureType value)
value
- LigatureTypepublic NumberFormType getNumberFormType()
public void setNumberFormType(NumberFormType value)
value
- NumberFormTypepublic NumberSpaceType getNumberSpaceType()
public void setNumberSpaceType(NumberSpaceType value)
value
- NumberSpaceTypepublic StylisticSetType getStylisticSetType()
public void setStylisticSetType(StylisticSetType value)
value
- StylisticSetType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |