Ribbon Elements sample code and reproducing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am tring to reproduce the sample code in
Customize User Interface (CUI) Managed API (.NET) at Ribbon Elements (.NET)
,But some prblom like
CODE 1:
***
RibbonButton button1 = new RibbonButton();//RibbonButton in Autodesk.Windows (adwindows.dll)
button1.text = “button1”;//I have no see the string property in the RibbonButton class
***
CODE 2:
***
RibbonRow row = new RibbonRow();//RibbonRow not in Autodesk.Windows (adwindows.dll)
row.RowItems.Add(button1);// If use Autodesk.AutoCAD.Customization namespace(may be in acui.dll)
row.RowItems.Add(button2);//not have the property call “RowItems”
***
CODE 3:
***
RibbonPanelSource panelSource = new RibbonPanelSource();
panelSource.Title = "Panel1";
panelSource.Rows.Add(row);//not have the property call “Row”
***
The developer’s document writed the Ribbon Element ‘s interface in Autodesk.Windows(adwindows.dll)
How to solve it?
thank you
——————————————————————————————————————————————————————————————————————————————
CODE 在上面贴出了,不知道为什么复现不了样例代码。
RibbonButton类我也没看懂这个Text属性哪里来的,
RibbonRow类也不在Autodesk.Windows 命名空间里面,
RibbonPanelSource的类内部属性也没有Row这个属性。
非常感谢解答!