Typeconverter Getstandardvalues

Typeconverter GetstandardvaluesCProperty. Grid CSDNProperty. GridPropertyProperty. GridVisual StudioVS. 1Property. Gridproperty. Grid. 1. Selected. ObjectSelect. Objectobject,Property. Typeconverter GetstandardvaluesGridStationpublic class Station               private string Station. Name         private double Lon  1. Lat  3. 8         private Color color         private string file  string. Empty         private Font font         public string File. Name                      get  return file              set  file  value                   public Color Color                      get  return color              set  color  value                   public Font Font                      get  return font              set  font  value                   public string Station. Name                      get  return Station. Name              set  Station. PropertyGrid PropertyGrid. PropertyGridProperty. Name  value                   public double Lon                      get  return Lon              set  Lon  value                   public double Lat                      get  return Lat              set  Lat  value                  public class Station. Station. Name. private double Lon 1. Lat 3. 8. private Color color. Empty. private Font font. File. Name. get return file. Color Color. get return color. Font Font. get return font. Station. Name. get return Station. Name. set Station. Name value. public double Lon. Lon. set Lon value. Lat. get return Lat. Lat value. Property. Gridpropertygrid. Formload. private void Form. Loadobject sender, Event. Args e      Station snew Station    propertygrid. Select. Objects     private void Form. Loadobject sender, Event. Args e. Station snew Station. Select. Objects. Description. Attribute  Category. Attribute   Browsable. Attribute . Read. Only. Attribute . Default. Value. Attribute . Default. Property. Attribute . StationLonCategory. Attribute,Display. Name. Attribute StationColorFontStation2. Property. Manage. Cls  Collection. Base, ICustom. Type. Descriptor                public void AddProperty value                        int flag 1              if value  null                                if base. List. Count 0                                        IList lt Property m. Listnew Listlt Property                       for int i  0 i lt base. List. Count i                                                Property p  base. Listi as Property                          if value. Name  p. Name                                                        flag  i                                                    m. List. Addp                                            if flag   1                                                m. List. Addvalue                                            base. List. Clear                      foreach Property p in m. List                                                base. List. Addp                                                          else                                        base. List. Addvalue                                                    public void RemoveProperty value                        ifvaluenull base. List. Count 0              base. List. Removevalue                    public Property thisint index                        get                                return Propertybase. Listindex                            set                                base. Listindex  Propertyvalue                                  region ICustom. Type. Descriptor           public Attribute. Collection Get. Attributes                        return Type. Descriptor. Get. Attributesthis,true                    public string Get. Class. Name                        return Type. Descriptor. Get. Class. Namethis, true                    public string Get. Component. Name                        return Type. Descriptor. Get. Component. Namethis, true                    public Type. Converter Get. Converter                        return Type. Descriptor. Get. Converterthis, true                    public Event. Descriptor Get. Default. Event                        return Type. Descriptor. Get. Default. Eventthis, true                    public Property. Descriptor Get. Default. Property                        return Type. Descriptor. Get. Default. Propertythis, true                    public object Get. EditorType editor. Base. Type                        return Type. Descriptor. Get. Editorthis, editor. Base. Type, true                    public Event. Descriptor. Collection Get. EventsAttribute attributes                        return Type. Descriptor. Get. Eventsthis, attributes, true                    public Event. Descriptor. Collection Get. Events                        return Type. Descriptor. Get. Eventsthis,true                    public Property. Descriptor. Collection Get. PropertiesAttribute attributes                        Property. Descriptor new. Props  new Property. Descriptorthis. Count              for int i  0 i lt this. Count i                                Property prop  Propertythisi                  new. Propsi  new Custom. Property. Descriptorref prop, attributes                            return new Property. Descriptor. Collectionnew. Props                    public Property. Descriptor. Collection Get. Properties                        return Type. Descriptor. Get. Propertiesthis, true                    public object Get. Property. OwnerProperty. Descriptor pd                        return this                            endregion              public class Property                private string namestring. Empty          private object valuenull          private bool readonlyfalse          private bool visibletrue          private string categorystring. Empty          Type. Converter converternull          object editor  null          private string displayname  string. Empty          public Propertystring s. Name, object s. Value                        this. name  s. Name              this. value  s. Value                    public Propertystring s. Name, object s. Value, bool s. Readonly, bool s. Visible                        this. name  s. Name              this. value  s. Value              this. readonly  s. Readonly              this. visible  s. Visible                    public string Name                          get                                return name                            set                                namevalue                                  public string Display. C Property. Grid Ruiky propertygridvisual studiomsdnhttp www. Jul 2. 00. 2articleusingpropgrid. Microsoft. NET Property. Grid       Microsoft. NET     Microsoft Visual Studio. NET Property. Grid   Property. Grid   Property. Grid     Property. Grid     UIProperty. Grid Microsoft Visual Basic Microsoft Visual Studio. NET. NET  Property. Grid  Visual Studio. NET Property. Grid  Property. Grid  1 Property. Grid. Property. Grid  Property. Grid Visual Studio. NET  Property. Grid  Tools  Customize Toolbox Framework Components  Property. Grid  reference  System. Windows. Forms. dll Property. Grid using System  using System. Drawing  using System. Component. Model  using System. Windows. Forms  using System. Globalization  public class Options. Dialog  System. Windows. Forms. Form        private System. Windows. Forms. Property. Grid Options. Property. Grid      public Options. Dialog               Options. Property. Grid  new Property. Grid         Options. Property. Grid. Size  new Size3. Controls. AddOptions. Property. Grid         this. Text              STAThread      static void Main               Application. Runnew Options. Dialog           Property. Grid    Property. Grid  Property. Grid  Options. Dialog  App. Settings public class App. Settings       private bool save. On. Close  true       private string greeting. Text         private int items. In. MRU  4       private int max. Repeat. Rate  1. Changed  false       private string app. Version  1. 0             public bool Save. On. Close                  get  return save. On. Close            set  save. On. Close  value               public string Greeting. Text                  get  return greeting. Text            set  greeting. Text  value               public int Max. Repeat. Rate                  get  return max. Repeat. Rate            set  max. Repeat. Rate  value               public int Items. In. MRUList                  get  return items. In. MRU            set  items. In. MRU  value               public bool Settings. Changed                  get  return settings. Changed            set  settings. Changed  value               public string App. Version                  get  return app. Version            set  app. Version  value             Property. Grid  Property. Grid  Property. Grid. Selected. Object Property. Grid  Selected. Object Property. Grid  Property. Grid. Refresh  Options. Dialog  App. Settings Property. Grid. Selected. Object public Options. Dialog        Options. Property. Grid  new Property. Grid      Options. Property. Grid. Size  new Size3. Controls. AddOptions. Property. Grid      this. Text          App. Settings  Property. Grid       App. Settings appset  new App. Settings      Options. Property. Grid. Selected. Object  appset     2Property. Grid App. Settings Property. Grid  Property. Grid  Property. Grid  Property. Grid Property. Grid  Help. Back. Color Help. Fore. Color  Help. Visible  Toolbar. Visible  Back. Color Large. Buttons  Property. Sort  Back. Color  Line. Color  Toolbar. Visible  false  Description. Attribute   Max. Repeat. Rate Category. Attribute   Browsable. Attribute   Settings. Changed Read. Only. Attribute  get set  App. Version Default. Value. Attribute  Default. Property. Attribute   App. Settings  App. Settings  Property. Grid Default. Property. AttributeSave. On. Close  public class App. Settings       private bool save. On. Close  true       private string greeting. Text         private int max. Repeat. Rate  1. In. MRU  4       private bool settings. Changed  false       private string app. Version  1. 0       Category. Attribute,       Default. Value. Attributetrue       public bool Save. On. Close                  get  return save. On. Close            set  save. On. Close  value               Category. Attribute,       Read. Only. Attributetrue,       Default. Value. Attribute       public string Greeting. Text                  get  return greeting. Text            set  greeting. Text  value               Category. Attribute,       Default. Value. Attribute4       public int Items. In. MRUList                  get  return items. In. MRU            set  items. In. MRU  value               Description. Attribute,       Category. Attribute,       Default. Value. Attribute1. Max. Repeat. Rate                  get  return max. Repeat. Rate            set  max. Repeat. Rate  value               Browsable. Attributefalse,       Default. Value. Attributefalse       public bool Settings. Changed                  get  return settings. Changed            set  settings. Changed  value               Category. Attribute,       Default. Value. Attribute1. Read. Only. Attributetrue       public string App. Version                  get  return app. Version            set  app. Version  value             App. Settings  3Property. Grid  Save. On. Close  Max. Repeat. Rate Save. On. Close Settings. Changed App. Version  Save. On. Close  true Property. Grid . NET  Property. Grid    App. Settings Size Font Color Default. Property. AttributeSave. On. Close  public class App. Settings       private bool save.

. . .