RenderingFont
RenderingFont class
Font for rendering.
class RenderingFont;
Constructors
Constructor | Description |
---|---|
constructor(string, number) | Initializes a new instance of the RenderingFont |
Properties
Property | Type | Description |
---|---|---|
name | string | Readonly. Gets name of the font. |
size | number | Readonly. Gets size of the font in points. |
bold | boolean | Gets or sets bold for the font. |
italic | boolean | Gets or sets italic for the font. |
color | Color | Gets or sets color for the font. |
Methods
Method | Description |
---|---|
getName() | @deprecated. Please use the ’name’ property instead. Gets name of the font. |
getSize() | @deprecated. Please use the ‘size’ property instead. Gets size of the font in points. |
getBold() | @deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font. |
setBold(boolean) | @deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font. |
getItalic() | @deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font. |
setItalic(boolean) | @deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font. |
getColor() | @deprecated. Please use the ‘color’ property instead. Gets or sets color for the font. |
setColor(Color) | @deprecated. Please use the ‘color’ property instead. Gets or sets color for the font. |
isNull() | Checks whether the implementation object is null. |
constructor(string, number)
Initializes a new instance of the RenderingFont
constructor(fontName: string, fontSize: number);
Parameters:
Parameter | Type | Description |
---|---|---|
fontName | string | font name |
fontSize | number | font size in points |
name
Readonly. Gets name of the font.
name : string;
size
Readonly. Gets size of the font in points.
size : number;
bold
Gets or sets bold for the font.
bold : boolean;
italic
Gets or sets italic for the font.
italic : boolean;
color
Gets or sets color for the font.
color : Color;
getName()
@deprecated. Please use the ’name’ property instead. Gets name of the font.
getName() : string;
getSize()
@deprecated. Please use the ‘size’ property instead. Gets size of the font in points.
getSize() : number;
getBold()
@deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font.
getBold() : boolean;
setBold(boolean)
@deprecated. Please use the ‘bold’ property instead. Gets or sets bold for the font.
setBold(value: boolean) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | The value to set. |
getItalic()
@deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font.
getItalic() : boolean;
setItalic(boolean)
@deprecated. Please use the ‘italic’ property instead. Gets or sets italic for the font.
setItalic(value: boolean) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | The value to set. |
getColor()
@deprecated. Please use the ‘color’ property instead. Gets or sets color for the font.
getColor() : Color;
Returns
setColor(Color)
@deprecated. Please use the ‘color’ property instead. Gets or sets color for the font.
setColor(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
isNull()
Checks whether the implementation object is null.
isNull() : boolean;