Class PmpGroup
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
a wrapper for solidworks property manager page groups
public class PmpGroup : IWrapSolidworksObject<IPropertyManagerPageGroup>, IReleaseSolidworksObject
- Inheritance
-
PmpGroup
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageGroup>
- Derived
- Inherited Members
Constructors
PmpGroup(string, bool, bool)
construct a property manage page group to host numerous IPmpControl
public PmpGroup(string caption = "Group", bool expanded = true, bool visible = true)
Parameters
captionstringtext that appears next to a group box
expandedboolif set true group box will appear expanded by default
visibleboolif set to false group box will be hidden by default
PmpGroup(string, List<IPmpControl>, bool, bool)
construct a property manager page group to host numerous IPmpControl
public PmpGroup(string Caption, List<IPmpControl> Controls, bool expanded = true, bool visible = true)
Parameters
Captionstringtext that appears next to a group box
ControlsList<IPmpControl>list of controls to add to this group
expandedboolif set true group box will appear expanded by default
visibleboolif set to false group box will be hidden by default
Fields
_options
this is used at registering stage only
protected swAddGroupBoxOptions_e _options
Field Value
- swAddGroupBoxOptions_e
Properties
BackgroundColor
Gets or sets the background color of this PropertyManager group box.
public SysColor BackgroundColor { get; set; }
Property Value
Caption
caption
public string Caption { get; set; }
Property Value
Controls
a list of solidworks controllers
public List<IPmpControl> Controls { get; }
Property Value
Id
identifier for this group box in Property manager page
public int Id { get; }
Property Value
IsExpanded
determines the expand state of this group box
public bool IsExpanded { get; set; }
Property Value
SolidworksObject
gets native solidworks object
public IPropertyManagerPageGroup SolidworksObject { get; }
Property Value
- IPropertyManagerPageGroup
Visible
Gets or sets the group box visibility state.
public bool Visible { get; set; }
Property Value
Methods
AddControl(IPmpControl)
Registers a control to the Controls and solidworks UI
public void AddControl(IPmpControl control)
Parameters
controlIPmpControl
AddControls(IEnumerable<IPmpControl>)
adds a list of controls to the Controls
public void AddControls(IEnumerable<IPmpControl> controls)
Parameters
controlsIEnumerable<IPmpControl>
ReleaseSolidworksObject()
reease solidowrks object
public void ReleaseSolidworksObject()
UnsubscribeFromEvents()
Unsusbcribe all event handlers from events
public virtual void UnsubscribeFromEvents()
Events
Displaying
an event that gets called right before this pmpGroup is displayed
public event EventHandler<EventArgs> Displaying
Event Type
Expanded
method to invoke when user expands a group
this delegate requires a bool variable to indicate the IsExpanded status of the group
public event EventHandler<bool> Expanded
Event Type
Registering
invoked once this group is registers into solidworks
public event EventHandler<EventArgs> Registering