System.ComponentModel.Design.DesignerOptionService.PopulateOptionCollection C# (CSharp) Method

PopulateOptionCollection() protected method

This method is called on demand the first time a user asks for child options or properties of an options collection.
protected PopulateOptionCollection ( DesignerOptionCollection options ) : void
options DesignerOptionCollection
return void
        protected virtual void PopulateOptionCollection(DesignerOptionCollection options)
        {
        }

Usage Example

示例#1
0
            internal DesignerOptionCollection(DesignerOptionCollection parent, string name, object propertiesProvider, DesignerOptionService service)
            {
                _name = name;
                _propertiesProvider = propertiesProvider;
                _parent             = parent;

                if (parent != null)
                {
                    if (parent._children == null)
                    {
                        parent._children = new ArrayList();
                    }
                    parent._children.Add(this);
                }

                _children      = new ArrayList();
                _optionService = service;
                service.PopulateOptionCollection(this);
            }
All Usage Examples Of System.ComponentModel.Design.DesignerOptionService::PopulateOptionCollection