我有一个用户控件,其中包含以下代码。
[System.ComponentModel.Category("Appearance")]
public override string Text { ... }
private int myVar;
[System.ComponentModel.Category("Appearance")]
public int MyProperty { ... }
MyProperty
将控件插入表单时显示在属性网格中,但Text
不显示。我怎样才能让它可见?