下列代码演示了使用 ShowingEditor 事件处理程序来阻止内置编辑器被激活:
C# | 复制代码 |
---|---|
using DevExpress.XtraBars; private void eItem1_ShowingEditor(object sender, ItemCancelEventArgs e) { e.Cancel = true; } |
Visual Basic | 复制代码 |
---|---|
Private Sub eItem1_ShowingEditor(ByVal sender As Object, _ ByVal e As DevExpress.XtraBars.ItemCancelEventArgs) Handles eItem1.ShowingEditor e.Cancel = True End Sub |