描述
设置元素源.注意:为过时接口,请及时升级到SetElementConfig()
2、建议使用SetElementConfig()替代
接口
bool SetElementSource(const char* id, const char* source_class, const char* source_id, ElementCfg eleCfg)
参数
参数名 | 必填 | 类型 | 说明 | 备注 |
---|---|---|---|---|
id | 是 | string | 元素ID | 为空时,设置对象为当前操作元素 |
source_class | 是 | string | 源类型 | |
source_id | 是 | string | 源ID | |
eleCfg | 是 | uint | 元素位域参数 | eleCfg参数为必填 ElementCfg |
返回值
类型 | 说明 | 备注 |
---|---|---|
bool | 设置是否成功 | 1:成功 0:失败 |
文档更新时间: 2025-02-25 22:14 作者:admin