public interface ITextStyle
Interface to work with Text Style
Modifier and Type | Method and Description |
---|---|
void |
apply(ITextStyle style)
Applies the specified style.
|
boolean |
getAutoLeading()
Gets or sets a value indicating whether [automatic leading].
|
double |
getBaselineShift()
The baseline shift.
|
boolean |
getFauxBold()
Gets or sets the faux bold is enabled.
|
boolean |
getFauxItalic()
Gets or sets the faux bold is enabled.
|
Color |
getFillColor()
Gets or sets the color of the fill.
|
int |
getFontBaseline()
The font baseline.
|
int |
getFontCaps()
The font caps.
|
int |
getFontIndex()
Gets the font index.
|
double |
getFontSize()
Gets or sets the size of the font.
|
boolean |
getHindiNumbers()
Gets or sets a value indicating whether [hindi numbers].
|
int |
getKerning()
Gets or sets the kerning.
|
double |
getLeading()
Gets or sets the leading.
|
boolean |
getStrikethrough()
Gets or sets a value indicating whether [strikethrough].
|
Color |
getStrokeColor()
Gets or sets the color of the stroke.
|
int |
getTracking()
Gets or sets the tracking.
|
boolean |
getUnderline()
Gets or sets a value indicating whether [underline].
|
boolean |
isEqual(ITextStyle style)
Determines whether the specified style is equal.
|
void |
setAutoLeading(boolean value)
Gets or sets a value indicating whether [automatic leading].
|
void |
setBaselineShift(double value)
The baseline shift.
|
void |
setFauxBold(boolean value)
Gets or sets the faux bold is enabled.
|
void |
setFauxItalic(boolean value)
Gets or sets the faux bold is enabled.
|
void |
setFillColor(Color value)
Gets or sets the color of the fill.
|
void |
setFontBaseline(int value)
The font baseline.
|
void |
setFontCaps(int value)
The font caps.
|
void |
setFontSize(double value)
Gets or sets the size of the font.
|
void |
setHindiNumbers(boolean value)
Gets or sets a value indicating whether [hindi numbers].
|
void |
setKerning(int value)
Gets or sets the kerning.
|
void |
setLeading(double value)
Gets or sets the leading.
|
void |
setStrikethrough(boolean value)
Gets or sets a value indicating whether [strikethrough].
|
void |
setStrokeColor(Color value)
Gets or sets the color of the stroke.
|
void |
setTracking(int value)
Gets or sets the tracking.
|
void |
setUnderline(boolean value)
Gets or sets a value indicating whether [underline].
|
double getFontSize()
Gets or sets the size of the font.
Value: The size of the font.void setFontSize(double value)
Gets or sets the size of the font.
Value: The size of the font.int getFontIndex()
Gets the font index.
Value: The font.boolean getAutoLeading()
Gets or sets a value indicating whether [automatic leading].
Value:true
if [automatic leading]; otherwise, false
.void setAutoLeading(boolean value)
Gets or sets a value indicating whether [automatic leading].
Value:true
if [automatic leading]; otherwise, false
.double getLeading()
Gets or sets the leading.
Value: The leading.void setLeading(double value)
Gets or sets the leading.
Value: The leading.int getTracking()
Gets or sets the tracking.
Value: The tracking.void setTracking(int value)
Gets or sets the tracking.
Value: The tracking.int getKerning()
Gets or sets the kerning.
Value: The kerning.void setKerning(int value)
Gets or sets the kerning.
Value: The kerning.Color getFillColor()
Gets or sets the color of the fill.
Value: The color of the fill.void setFillColor(Color value)
Gets or sets the color of the fill.
Value: The color of the fill.Color getStrokeColor()
Gets or sets the color of the stroke.
Value: The color of the stroke.void setStrokeColor(Color value)
Gets or sets the color of the stroke.
Value: The color of the stroke.boolean getHindiNumbers()
Gets or sets a value indicating whether [hindi numbers].
Value:true
if [hindi numbers]; otherwise, false
.void setHindiNumbers(boolean value)
Gets or sets a value indicating whether [hindi numbers].
Value:true
if [hindi numbers]; otherwise, false
.boolean getFauxBold()
Gets or sets the faux bold is enabled.
void setFauxBold(boolean value)
Gets or sets the faux bold is enabled.
boolean getFauxItalic()
Gets or sets the faux bold is enabled.
void setFauxItalic(boolean value)
Gets or sets the faux bold is enabled.
boolean getUnderline()
Gets or sets a value indicating whether [underline].
void setUnderline(boolean value)
Gets or sets a value indicating whether [underline].
boolean getStrikethrough()
Gets or sets a value indicating whether [strikethrough].
void setStrikethrough(boolean value)
Gets or sets a value indicating whether [strikethrough].
int getFontBaseline()
The font baseline.
void setFontBaseline(int value)
The font baseline.
double getBaselineShift()
The baseline shift.
void setBaselineShift(double value)
The baseline shift.
int getFontCaps()
The font caps.
void setFontCaps(int value)
The font caps.
void apply(ITextStyle style)
Applies the specified style.
style
- The style.boolean isEqual(ITextStyle style)
Determines whether the specified style is equal.
style
- The style.true
if the specified style is equal; otherwise, false
.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.