Class PmpGroupFluentCheckable
- Namespace
- Hymma.Solidworks.Addins.Fluent
- Assembly
- Hymma.Solidworks.Addins.Fluent.dll
a group in property manager page that host the IPmpControl
public class PmpGroupFluentCheckable : PmpGroupCheckable, IWrapSolidworksObject<IPropertyManagerPageGroup>, IReleaseSolidworksObject, IPmpGroupFluentCheckable, IPmpGroupFluentBase<IPmpGroupFluentCheckable>
- Inheritance
-
PmpGroupFluentCheckable
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageGroup>
- Inherited Members
Constructors
PmpGroupFluentCheckable(string, bool, bool, bool)
default constructor
public PmpGroupFluentCheckable(string caption, bool visible = true, bool isChecked = true, bool expanded = true)
Parameters
captionstringcaption of the control inside the PMP
visibleboolisCheckedboolexpandedboolexpansion state of the group upon load
Methods
And()
add extra context to this PmpGroup
public IPmpGroupFluentCheckable And()
Returns
Color(SysColor)
background color of this group
public IPmpGroupFluentCheckable Color(SysColor sysColor)
Parameters
sysColorSysColor
Returns
HasTheseControls(IEnumerable<IPmpControl>)
add these controls to the PmpGroup
public IPmpGroupFluentCheckable HasTheseControls(IEnumerable<IPmpControl> controls)
Parameters
controlsIEnumerable<IPmpControl>an IEnumerable<T> where T : IPmpControl
Returns
HasTheseControls(Func<IEnumerable<IPmpControl>>)
add these controls to the PmpGroup
public IPmpGroupFluentCheckable HasTheseControls(Func<IEnumerable<IPmpControl>> controlMaker)
Parameters
controlMakerFunc<IEnumerable<IPmpControl>>function that returns an IEnumerable<T> where T : IPmpControl
Returns
IsHidden(bool)
if set to true hides this group by default
public IPmpGroupFluentCheckable IsHidden(bool isHidden = true)
Parameters
isHiddenbool
Returns
OnChecked(EventHandler<bool>)
fires when user check/un-check the gourp check box
public IPmpGroupFluentCheckable OnChecked(EventHandler<bool> doThis)
Parameters
doThisEventHandler<bool>
Returns
OnDisplaying(EventHandler<EventArgs>)
fires when this group is displayed on the screen
public IPmpGroupFluentCheckable OnDisplaying(EventHandler<EventArgs> doThis)
Parameters
doThisEventHandler<EventArgs>
Returns
OnExpansionChange(Action<PmpGroup, bool>)
event handler for when user expands the group
public IPmpGroupFluentCheckable OnExpansionChange(Action<PmpGroup, bool> doThis)
Parameters
doThisAction<PmpGroup, bool>delegate that accepts a bool as the parameter and returns void. bool parameter will be assigned by solidworks and indicates the expansion state of the group.
Returns
SaveGroup()
save all the changes
public IPmpUiModelFluent SaveGroup()
Returns
SetCheckStatus(bool)
defines whether a chackable group appears in its checked state by default
public IPmpGroupFluentCheckable SetCheckStatus(bool status = true)
Parameters
statusbool
Returns
SetExpansion(bool)
determines if this PmpGroup is expanded or not
public IPmpGroupFluentCheckable SetExpansion(bool isExpanded = true)
Parameters
isExpandedbool
Returns
That()
add extra context to this PmpGroup
public IPmpGroupFluentCheckable That()