System.ComponentModel.PropertyTabAttribute.PropertyTabAttribute C# (CSharp) Method

PropertyTabAttribute() public method

Basic constructor that creates a property tab attribute that will create a tab of the specified type.

public PropertyTabAttribute ( Type tabClass, PropertyTabScope tabScope ) : System
tabClass System.Type
tabScope PropertyTabScope
return System
        public PropertyTabAttribute(Type tabClass, PropertyTabScope tabScope)
        {
            _tabClasses = new Type[] { tabClass };
            if (tabScope < PropertyTabScope.Document)
            {
                throw new ArgumentException(SR.Format(SR.PropertyTabAttributeBadPropertyTabScope), nameof(tabScope));
            }
            _tabScopes = new PropertyTabScope[] { tabScope };
        }

Same methods

PropertyTabAttribute::PropertyTabAttribute ( ) : System
PropertyTabAttribute::PropertyTabAttribute ( Type tabClass ) : System
PropertyTabAttribute::PropertyTabAttribute ( string tabClassName ) : System
PropertyTabAttribute::PropertyTabAttribute ( string tabClassName, PropertyTabScope tabScope ) : System