TextStyle

Inheritance: java.lang.Object, com.aspose.pub.BaseStyle

public class TextStyle extends BaseStyle

Describes PUB text style

Constructors

ConstructorDescription
TextStyle()Constructor

Methods

MethodDescription
isBold()Is text bold
setIsBold(boolean value)Sets is text bold
isItalic()Is text italic
setIsItalic(boolean value)Sets is text italic
getUnderlineType()Underline type for text
setUnderlineType(byte value)Sets underline type for text
isOutline()Is text outlined
setIsOutline(boolean value)Sets is text outlined
isShadow()Is text shadowed
setIsShadow(boolean value)Sets is text shadowed
isSmallCapsMode()Is small caps mode enabled
setIsSmallCapsMode(boolean value)Enables/disables small caps mode for text
isAllCapsMode()Is all caps mode enabled
setIsAllCapsMode(boolean value)Enables/disables all caps mode for text
isEmboss()Is text embossed
setIsEmboss(boolean value)Sets is text embossed
isEngrave()Is text engraved
setIsEngrave(boolean value)Sets is text engraved
getRawTextSize()Size of text in PUB metrics(in EMUs)
setRawTextSize(int value)Sets size of text in PUB metrics(in EMUs)
calculateTextSize()Calculates text size in points
getColorIndex()Gets index of color in Document.Colors array
setColorIndex(int value)Sets index of color in Document.Colors array
getFontIndex()Gets index of font name in Document.FontNames array
setFontIndex(int value)Sets index of font name in Document.FontNames array
getSuperscriptType()Type of superscript
setSuperscriptType(byte value)Sets type of superscript
getScaleValue()Value of scale
setScaleValue(double value)Sets value of scale
getLocale()Locale identifier
setLocale(int value)Sets locale identifier

TextStyle()

public TextStyle()

Constructor

isBold()

public final boolean isBold()

Is text bold

Returns: boolean - boolean value

setIsBold(boolean value)

public final void setIsBold(boolean value)

Sets is text bold

Parameters:

ParameterTypeDescription
valuebooleanIs bold value

isItalic()

public final boolean isItalic()

Is text italic

Returns: boolean - boolean value

setIsItalic(boolean value)

public final void setIsItalic(boolean value)

Sets is text italic

Parameters:

ParameterTypeDescription
valuebooleanIs italic value

getUnderlineType()

public final byte getUnderlineType()

Underline type for text

Returns: byte - UnderlineType element

setUnderlineType(byte value)

public final void setUnderlineType(byte value)

Sets underline type for text

Parameters:

ParameterTypeDescription
valuebyteValue of underline type

isOutline()

public final boolean isOutline()

Is text outlined

Returns: boolean - boolean value

setIsOutline(boolean value)

public final void setIsOutline(boolean value)

Sets is text outlined

Parameters:

ParameterTypeDescription
valuebooleanIs text outlined value

isShadow()

public final boolean isShadow()

Is text shadowed

Returns: boolean - boolean value

setIsShadow(boolean value)

public final void setIsShadow(boolean value)

Sets is text shadowed

Parameters:

ParameterTypeDescription
valuebooleanIs text shadowed value

isSmallCapsMode()

public final boolean isSmallCapsMode()

Is small caps mode enabled

Returns: boolean - boolean value

setIsSmallCapsMode(boolean value)

public final void setIsSmallCapsMode(boolean value)

Enables/disables small caps mode for text

Parameters:

ParameterTypeDescription
valuebooleanIs small caps mode enabled

isAllCapsMode()

public final boolean isAllCapsMode()

Is all caps mode enabled

Returns: boolean - boolean value

setIsAllCapsMode(boolean value)

public final void setIsAllCapsMode(boolean value)

Enables/disables all caps mode for text

Parameters:

ParameterTypeDescription
valuebooleanIs all caps mode enabled

isEmboss()

public final boolean isEmboss()

Is text embossed

Returns: boolean - boolean value

setIsEmboss(boolean value)

public final void setIsEmboss(boolean value)

Sets is text embossed

Parameters:

ParameterTypeDescription
valuebooleanIs text embossed value

isEngrave()

public final boolean isEngrave()

Is text engraved

Returns: boolean - boolean value

setIsEngrave(boolean value)

public final void setIsEngrave(boolean value)

Sets is text engraved

Parameters:

ParameterTypeDescription
valuebooleanIs text engraved value

getRawTextSize()

public final int getRawTextSize()

Size of text in PUB metrics(in EMUs)

Returns: int - int value

setRawTextSize(int value)

public final void setRawTextSize(int value)

Sets size of text in PUB metrics(in EMUs)

Parameters:

ParameterTypeDescription
valueintValue of text size in EMUs

calculateTextSize()

public final double calculateTextSize()

Calculates text size in points

Returns: double - text size in points

getColorIndex()

public final int getColorIndex()

Gets index of color in Document.Colors array

Returns: int - int value

setColorIndex(int value)

public final void setColorIndex(int value)

Sets index of color in Document.Colors array

Parameters:

ParameterTypeDescription
valueintValue of color index

getFontIndex()

public final int getFontIndex()

Gets index of font name in Document.FontNames array

Returns: int - int value

setFontIndex(int value)

public final void setFontIndex(int value)

Sets index of font name in Document.FontNames array

Parameters:

ParameterTypeDescription
valueintValue of font index

getSuperscriptType()

public final byte getSuperscriptType()

Type of superscript

Returns: byte - SuperscriptType element

setSuperscriptType(byte value)

public final void setSuperscriptType(byte value)

Sets type of superscript

Parameters:

ParameterTypeDescription
valuebyteValue of superscript type

getScaleValue()

public final double getScaleValue()

Value of scale

Returns: double - double value

setScaleValue(double value)

public final void setScaleValue(double value)

Sets value of scale

Parameters:

ParameterTypeDescription
valuedoubleValue of scale

getLocale()

public final int getLocale()

Locale identifier

Returns: int - int value

setLocale(int value)

public final void setLocale(int value)

Sets locale identifier

Parameters:

ParameterTypeDescription
valueintLocale identifier