Click here to Skip to main content
15,892,927 members
Articles / Programming Languages / C#

PropertyGrid

Rate me:
Please Sign up or sign in to vote.
3.22/5 (3 votes)
3 Nov 20069 min read 52.2K   1.3K   30  
A control which provides a convenient way to display data in a property grid.
using System;

namespace Puma.Controls.PropertyGrid
{
    public abstract class PropertyGridChildItemsDelegator : IPropertyGridChildItems
    {
        protected PropertyGridChildItemsDelegator(IPropertyGridChildItems IPropertyGridChildItems) 
        {
            _IPropertyGridChildItems = IPropertyGridChildItems;
        }

        protected readonly IPropertyGridChildItems _IPropertyGridChildItems;

        #region IPropertyGridChildItems Members

        public virtual IPropertyGridChildItemsFragment this[string Name]
        {
            get
            {
                // TODO:  Add PropertyGridChildItemsExDef.this getter implementation
                return _IPropertyGridChildItems[Name];
            }
        }

        #endregion

        #region IShredCollector Members

        public virtual Puma.Collections.IShred AddShred(string Name)
        {
            // TODO:  Add PropertyGridChildItemsExDef.AddShred implementation
            return _IPropertyGridChildItems.AddShred(Name);
        }

        public virtual Puma.Collections.IShred AddItem(string ShredName, object Item)
        {
            // TODO:  Add PropertyGridChildItemsExDef.GetShred implementation
            return _IPropertyGridChildItems.AddItem(ShredName, Item);
        }


        #endregion

        #region IShredCollectorReadOnly Members

        public virtual Puma.Collections.IShred GetShred(string Name)
        {
            // TODO:  Add PropertyGridChildItemsExDef.GetShred implementation
            return _IPropertyGridChildItems.GetShred(Name);
        }

        public virtual Puma.Collections.IShred GetShred(int Index)
        {
            // TODO:  Add PropertyGridChildItemsExDef.GetShred implementation
            return _IPropertyGridChildItems.GetShred(Index);
        }


        public virtual int Count
        {
            get
            {
                // TODO:  Add PropertyGridChildItemsExDef.Count getter implementation
                return _IPropertyGridChildItems.Count;
            }
        }

        public virtual bool IsShredExist(string Name)
        {
            // TODO:  Add PropertyGridChildItemsExDef.IsShredExist implementation
            return _IPropertyGridChildItems.IsShredExist(Name);
        }

        public virtual System.Collections.IEnumerable GetAllContainedItems()
        {
            // TODO:  Add PropertyGridChildItemsExDef.GetAllContainedItems implementation
            return _IPropertyGridChildItems.GetAllContainedItems();
        }

        #endregion

        #region IEnumerable Members

        public virtual System.Collections.IEnumerator GetEnumerator()
        {
            // TODO:  Add PropertyGridChildItemsExDef.GetEnumerator implementation
            return _IPropertyGridChildItems.GetEnumerator();
        }

        #endregion

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions