Class PmpCheckBox
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
a check box in a property manger page
public class PmpCheckBox : PmpControl<PropertyManagerPageCheckbox>, IWrapSolidworksObject<PropertyManagerPageCheckbox>, IReleaseSolidworksObject
- Inheritance
-
PmpControl<PropertyManagerPageCheckbox>PmpCheckBox
- Implements
-
IWrapSolidworksObject<PropertyManagerPageCheckbox>
- Inherited Members
Constructors
PmpCheckBox(string, bool, string)
default constructor
public PmpCheckBox(string caption, bool isChecked = false, string tip = "")
Parameters
captionstringcaption for this check box
isCheckedboolinitial state
tipstringa tip for this checkbox
Properties
IsChecked
status of this checkbox
public bool IsChecked { get; set; }
Property Value
MaintainState
provide a constant experience between sessions of calling a property manager we update the status of the control to that of previous call
public bool MaintainState { get; set; }
Property Value
Remarks
SolidWORKS requires us to register the control once the addin is loaded. then every time the property manage page is displayed the status of controls would reflect the registered state but to provide a constant experience between sessions of calling a property manager we use this property to update the status of the control to that of previous call
Methods
UnsubscribeFromEvents()
unsubscribe from all events
public override void UnsubscribeFromEvents()
Events
Checked
SOLIDWORKS will call this once the checkbox is clicked on
public event EventHandler<bool> Checked