bool ObjectSetText( string name, string text, int font_size, string font=NULL, color text_color=CLR_NONE)
設置物件的描述
:: 輸入參數
name - 物件的名稱
text - 文本
font_size - 字體大小
font - 字體名稱
text_color - 字體顏色
示例:
ObjectSetText("text_object", "Hello world!", 10, "Times New Roman", Green);
void ObjectsRedraw( )
重繪所有物件
示例:
ObjectsRedraw();
int ObjectsTotal( )
取物件總數
示例:
int obj_total=ObjectsTotal();
string name;
for(int i=0;i
{
name=ObjectName(i);
Print(i,"Object name is for object #",i," is " + name);
}
int ObjectType( string name)
取物件類型
:: 輸入參數
name - 物件的名稱
示例:
if(ObjectType("line_object2")!=OBJ_HLINE) return(0);
感謝您的閱讀!
微博:
閱讀更多 大侃金融 的文章