控件中所有数据库对象的基类,提供一些返回类型信息的interface 支持扩展属性"getName", 只读类型为: String
[ object, uuid(909D3AC5-9FA6-41A5-A23A-A8ABBD935575), dual, nonextensible, helpstring("IMxDrawMcRxObject interface"), pointer_default(unique) ]
interface IMxDrawMcRxObject : IDispatch;
MxDrawEnum.idl
例如:读取对象的中文字名称
MxDrawUtility mxUtility = new MxDrawUtility(); MxDrawPoint getPt; MxDrawEntity ent = mxUtility.GetEntity(out getPt, "选择实体"); if (ent == null) return; MxDrawResbuf ret = ent.GetProp("getName"); MessageBox.Show(ret.AtString(0));