System.Windows.Forms.Design (system.windows.forms.dll) | abstract class |
This class provides an abstract base for the property tabs shown in a
System.Windows.Forms.PropertyGrid.
You can specify the TabName and a
Bitmap to display in the tab. You can also get or
set the array of Components for which the tab will
display properties. For help support, you can set the
HelpKeyword associated with the tab. The
System.Windows.Forms.PropertyGrid will use this to
manage help display for the control while it is showing.
To manage the properties of the bound components,
GetProperties() will return a
System.ComponentModel.PropertyDescriptorCollection
listing the available properties, and GetDefaultProperty() will return the default
System.ComponentModel.PropertyDescriptor.
public abstract class PropertyTab : System.ComponentModel.IExtenderProvider {
// Protected Constructors
protected PropertyTab();
// Public Instance Properties
public virtual Bitmap Bitmap{get; }
public virtual object[ ] Components{set; get; }
public virtual string HelpKeyword{get; }
public abstract string TabName{get; }
// Public Instance Methods
// implements System.ComponentModel.IExtenderProvider
public virtual void Dispose();
public virtual PropertyDescriptor GetDefaultProperty(object component);
public virtual PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context,
object component, Attribute[ ] attributes);
public virtual PropertyDescriptorCollection GetProperties(object component);
public abstract PropertyDescriptorCollection GetProperties(object component, Attribute[ ] attributes);
// Protected Instance Methods
protected virtual void Dispose(bool disposing);
// overrides object
}
Subclasses
EventsTab
Returned By
System.Windows.Forms.PropertyGrid.{CreatePropertyTab(), SelectedTab},
System.Windows.Forms.PropertyTabCollection.this,
System.Windows.Forms.PropertyTabChangedEventArgs.{NewTab,
OldTab}
Passed To
System.Windows.Forms.PropertyTabChangedEventArgs.PropertyTabChangedEventArgs()
|