1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| namespace Yw.WinFrmUI
| {
| /// <summary>
| /// 功能(让集合不显示编辑按钮)
| /// 使用方法
| /// [EditorAttribute(typeof(CustomUITypenNoneEditor), typeof(System.Drawing.Design.UITypeEditor))]
| /// </summary>
| public class CustomUITypenNoneEditor : System.Drawing.Design.UITypeEditor
| {
| /// <summary>
| ///
| /// </summary>
| public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
| {
| return System.Drawing.Design.UITypeEditorEditStyle.None;
| }
| }
|
|
|
| }
|
|