ObjectSetFont

 

Change the font of the object.

 

void @ObjectSetFont(string classname, string name, float size, int style);

 

Parameters

string classname : Class name of object

string name : Font name

float size : Font size

int style : Font style ( 1=Bold, 2=Italic, 4=Underline, 8=Strikeout)  Multiple options can be used as OR. 3=Bold+Italic

 

Return Value

None

 

Example

@ObjectSetFont("Text1", "Arial", 10, 1);

 

Description : Set font of "Text1" object to Arial, size to 10, style to Bold

 

Version Information

Supported Version: 10.2.9

 

Related Helps

@ObjectGetClassName()

@ObjectSetBackColor()

@ObjectSetFillColor()

@ObjectSetFillOption()

@ObjectSetFont()

@ObjectSetFontName()

@ObjectSetFontSize()

@ObjectSetFontStyle()

@ObjectSetLineColor()

@ObjectSetLineOption()

@ObjectSetLineThick()

@ObjectSetRect()

@ObjectSetRotationAxis()

@ObjectSetTag()

@ObjectSetText()

@ObjectSetTextColor()

@ObjectSetToolTipText()

@ObjectSetVisible()