code_junkie

How do I change the type of control that is used in a .NET PropertyGrid

Nov 10th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. [Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
  2. public override string Text
  3. {
  4. get { return _string; }
  5. set { _string = value; }
  6. }
  7.  
  8. [Editor("System.Windows.Forms.Design.StringArrayEditor,
  9. System.Design, Version=2.0.0.0,
  10. Culture=neutral,
  11. PublicKeyToken=b03f5f7f11d50a3a",
  12. typeof(UITypeEditor))]
  13. public string[] Lines
  14. {
  15. get { return _lines; }
  16. set { _lines = value; }
  17. }
Add Comment
Please, Sign In to add comment