ObjectGetTag

 

Get the tag name used in the object. The class name should be the only name in the entire module. Get the tag of the first class name that mached.

 

string @ObjectGetTag(string classname);

 

Parameters

string classname : Class name of object

 

Return Value

Tag name used in the object

 

Example 1

tag = @ObjectGetTag("AnalogRectangle1");

 

Description : Get tag name of 'AnalogRectangle1' object.
 

Example 2

classname = @ObjectGetClassName();
tag = @ObjectGetTag("this");
@sprintf(buf, "ClassName:%s Tag:%s", classname, tag);
@Message(buf);

 

Description : Get the tag name of the object to which the current script belongs and display it on the screen. @ObjectGetTag If "this" is used as a parameter, it means the class name to which the current script belongs.

 

Version Information

Supported Version: 10.3.3

 

Related Helps

@ObjectGetClassName()

@ObjectGetTag()

@ObjectSetBackColor()

@ObjectSetFillColor()

@ObjectSetFillOption()

@ObjectSetFont()

@ObjectSetFontName()

@ObjectSetFontSize()

@ObjectSetFontStyle()

@ObjectSetLineColor()

@ObjectSetLineOption()

@ObjectSetLineThick()

@ObjectSetRect()

@ObjectSetRotationAxis()

@ObjectSetTag()

@ObjectSetText()

@ObjectSetTextColor()

@ObjectSetToolTipText()

@ObjectSetVisible()