Class PmpTab
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
Tab for a PropertyManager page.
public class PmpTab : IWrapSolidworksObject<IPropertyManagerPageTab>, IReleaseSolidworksObject
- Inheritance
-
PmpTab
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageTab>
- Derived
- Inherited Members
Constructors
PmpTab(string, Bitmap)
create a tab for property manager page
public PmpTab(string caption, Bitmap icon = null)
Parameters
captionstringcaption for this property manager page tab
iconBitmapThe Bitmap argument allows you to place a bitmap before the text on the tab
Any portions of the bitmap that are RGB(255,255,255) will be transparent, letting the tab background show through. this will be resized to 16x18 pixels
Properties
Caption
caption for this property manager page tab
public string Caption { get; set; }
Property Value
IconDir
directory where this tab's main image get saved to
public DirectoryInfo IconDir { get; }
Property Value
Id
id of this tab used by solidworks
public int Id { get; }
Property Value
SolidworksObject
Actual solidworks object
public IPropertyManagerPageTab SolidworksObject { get; set; }
Property Value
- IPropertyManagerPageTab
TabGroups
Access the PmpGroups in this tab
public List<PmpGroup> TabGroups { get; set; }
Property Value
Methods
Activate()
Activates this tab in the PropertyManager page.
public void Activate()
ReleaseSolidworksObject()
release solidworks object
public void ReleaseSolidworksObject()
UnsubscribeFromEvents()
unsubscribe all event handlers from this tab
public virtual void UnsubscribeFromEvents()
Events
Clicked
invoked once user clicked on this tab
public event EventHandler<EventArgs> Clicked
Event Type
Displaying
fires a moment before the property manger page is displayed
public event EventHandler<EventArgs> Displaying