定义可以显示在功能区(Ribbon)上的 Ribbon 按钮所具有的基本功能的接口。
命名空间:
SuperMap.Desktop程序集: SuperMap.Desktop.Core (in SuperMap.Desktop.Core)
版本: dll
语法
C# |
---|
public interface IButton : IBaseItem |
示例
CopyC#
IButton ibutton; System.Windows.Forms.CheckState checkState = (this.Caller as IButton).CheckState; ibutton.Text = "修改按钮文本"; // 修改选中状态 System.Windows.Forms.CheckState checkState = ibutton.CheckState; if (checkState == CheckState.Checked) { ibutton.CheckState = CheckState.Unchecked; } else { ibutton.CheckState = CheckState.Checked; }