UF_OBJ_ask_display_properties
返回一个对象的显示属性(层、颜色、隐藏状态、线宽和字体)。
UF_OBJ_disp_props_p_t结构体:
layer int 对象所在的层
color int 对象颜色
blank_status int 对象的隐藏状态
UF_OBJ_NOT_BLANKED
UF_OBJ_BLANKED
line_width int 线宽
UF_OBJ_WIDTH_NORMAL
UF_OBJ_WIDTH_THICK
UF_OBJ_WIDTH_THIN
UF_OBJ_WIDTH_ORIGINAL
UF_OBJ_WIDTH_1 -- UF_OBJ_WIDTH_9
font int 对象字体大小
highlight_status logical 对象是否高亮
例如获取对象的颜色:
UF_OBJ_disp_props_t disp_props;
UF_OBJ_ask_display_properties(tagObj, &disp_props);
//disp_props.color 对象颜色