Table of Contents

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

caption string

caption for this property manager page tab

icon Bitmap

The 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

string

IconDir

directory where this tab's main image get saved to

public DirectoryInfo IconDir { get; }

Property Value

DirectoryInfo

Id

id of this tab used by solidworks

public int Id { get; }

Property Value

int

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

List<PmpGroup>

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

EventHandler<EventArgs>

Displaying

fires a moment before the property manger page is displayed

public event EventHandler<EventArgs> Displaying

Event Type

EventHandler<EventArgs>