「トップページ/CSHARP/WINFORM/PropertyGrid」の編集履歴(バックアップ)一覧はこちら

トップページ/CSHARP/WINFORM/PropertyGrid」(2013/03/15 (金) 08:56:38) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

|&big(){Windows.Forms.PropertyGrid}| #contents() ---- *データをセットする this.PropertyGrid.SelectedObject = データの入っているクラスのインスタンス *デフォルト値 [DefaultValue(false)] public bool Foo { get; set; } *表示しない [Browsable(false)] public bool Foo { get; set; } *説明表示 [Description("ここに説明を書く")] public bool Foo { get; set; } *グループ FooとBarは同じグループとして表示される [Category("友達")] public bool Foo { get; set; } [Category("友達")] public bool Bar { get; set; } *書き込めなくする [ReadOnly(true)] public bool Foo { get; set; } *デフォルトプロパティ Barにフォーカスがある状態で開始する [DefaultProperty("Bar")] public class Settings { public bool Foo { get; set; } public bool Bar { get; set; } } *内包クラスを展開できるようにする [TypeConverter(typeof(ExpandableObjectConverter))] public class Foo { get; set; } *ファイルを開く 参照設定にSystem.Designを追加が必要 [Editor(typeof(System.Windows.Forms.Design.FileNameEditor), typeof(System.Drawing.Design.UITypeEditor))] public string Foo { get; set; }
|&big(){Windows.Forms.PropertyGrid}| #contents() ---- *データをセットする this.PropertyGrid.SelectedObject = データの入っているクラスのインスタンス *デフォルト値 [DefaultValue(false)] public bool Foo { get; set; } *表示しない [Browsable(false)] public bool Foo { get; set; } *説明表示 [Description("ここに説明を書く")] public bool Foo { get; set; } *グループ FooとBarは同じグループとして表示される [Category("友達")] public bool Foo { get; set; } [Category("友達")] public bool Bar { get; set; } *書き込めなくする [ReadOnly(true)] public bool Foo { get; set; } *デフォルトプロパティ Barにフォーカスがある状態で開始する [DefaultProperty("Bar")] public class Settings { public bool Foo { get; set; } public bool Bar { get; set; } } *内包クラスを展開できるようにする [TypeConverter(typeof(ExpandableObjectConverter))] public class Foo { get; set; } *ファイルを開く 参照設定にSystem.Designを追加が必要 using System.Drawing.Design; using System.Windows.Forms.Design; [Editor(typeof(FileNameEditor), typeof(UITypeEditor))] public string Foo { get; set; }

表示オプション

横に並べて表示:
変化行の前後のみ表示: