March 2003
Intermediate to advanced
896 pages
32h 35m
English
PropertyTabAttribute
You apply this attribute to a class or property to indicate that a
particular class of property tab should be added into a designer
(such as one derived from a
System.Windows.Forms.PropertyGrid) when an
instance of the attributed class is selected.
You can get an array of types indicating the
TabClasses that the attribute represents, along
with the PropertyTabScope for the tabs. The tab
scope indicates how and when the tabs should be shown (e.g., whenever
the current component is selected, when the document containing the
component is selected, etc.).
See System.Windows.Forms.Design.PropertyTab for an
implementation of a property tab.
public class PropertyTabAttribute : Attribute { // Public Constructors public PropertyTabAttribute(); public PropertyTabAttribute(string tabClassName); public PropertyTabAttribute(string tabClassName, PropertyTabScope tabScope); public PropertyTabAttribute(Type tabClass); public PropertyTabAttribute(Type tabClass, PropertyTabScope tabScope); // Public Instance Properties public Type[] TabClasses{get; } public PropertyTabScope[] TabScopes{get; } // Protected Instance Properties protected string[] TabClassNames{get; } // Public Instance Methods public override bool Equals(object other); // overrides Attribute public bool Equals(PropertyTabAttribute other); public override int GetHashCode(); // overrides Attribute // Protected Instance Methods protected void InitializeArrays(string[ ] tabClassNames, PropertyTabScope[]
Read now
Unlock full access