自作ユーザーコントロールのプロパティ公開
自作ユーザーコントロールのプロパティを公開する。
個別に表示するならこんな感じ。
// Category属性かBrowsable属性をつける。 // [Category("カテゴリ名")] // [Browsable(true)] [Browsable(true)] public string MyText { get { return textBox1.text; } set { textBox1.text = value; } }
まとめて変更OKにしちゃうなら、
ModifiersをprotectedなりpublicにしちゃえばOK