Class PmpRadioButton
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
a SolidWORKS radio button in property managers
public class PmpRadioButton : PmpControl<IPropertyManagerPageOption>, IWrapSolidworksObject<IPropertyManagerPageOption>, IReleaseSolidworksObject
- Inheritance
-
PmpControl<IPropertyManagerPageOption>PmpRadioButton
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageOption>
- Inherited Members
Constructors
PmpRadioButton(string, bool)
make a new radio button for SolidWORKS property manager pages
public PmpRadioButton(string caption, bool isChecked = false)
Parameters
captionstringcaption for this radio button
isCheckedboolwhether it is going to be the checked or not
Properties
IsChecked
whether or not this radio button is checked
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 manager 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 invoke this delegate once the user checks this radio button
public event EventHandler<bool> Checked