Class PmpTabGroupFluentCheckable
- Namespace
- Hymma.Solidworks.Addins.Fluent
- Assembly
- Hymma.Solidworks.Addins.Fluent.dll
a checkable group inside a tab inside a property manager page
public class PmpTabGroupFluentCheckable : PmpGroupCheckable, IWrapSolidworksObject<IPropertyManagerPageGroup>, IReleaseSolidworksObject, IPmpTabGroupFluentCheckable, IPmpGroupFluentBase<IPmpTabGroupFluentCheckable>
- Inheritance
-
PmpTabGroupFluentCheckable
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageGroup>
- Inherited Members
Constructors
PmpTabGroupFluentCheckable(string, bool, bool, bool)
default constructor
public PmpTabGroupFluentCheckable(string caption, bool visible = true, bool isChecked = true, bool expanded = true)
Parameters
Properties
Tab
the tab this group belongs to
public PmpTabFluent Tab { get; }
Property Value
Methods
And()
add extra context to this PmpGroup
public IPmpTabGroupFluentCheckable And()
Returns
Color(SysColor)
background color of this group
public IPmpTabGroupFluentCheckable Color(SysColor sysColor)
Parameters
sysColorSysColor
Returns
HasTheseControls(IEnumerable<IPmpControl>)
add these controls to the PmpGroup
public IPmpTabGroupFluentCheckable 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 IPmpTabGroupFluentCheckable HasTheseControls(Func<IEnumerable<IPmpControl>> controlMaker)
Parameters
controlMakerFunc<IEnumerable<IPmpControl>>function that returns an IEnumerable<T> where T : IPmpControl
Returns
IsHidden(bool)
hides this group
public IPmpTabGroupFluentCheckable IsHidden(bool isHidden = true)
Parameters
isHiddenbool
Returns
OnChecked(EventHandler<bool>)
fires when user check/un-check the gourp check box
public IPmpTabGroupFluentCheckable OnChecked(EventHandler<bool> doThis)
Parameters
doThisEventHandler<bool>
Returns
OnDisplaying(EventHandler<EventArgs>)
fires when this group is displayed on the screen
public IPmpTabGroupFluentCheckable OnDisplaying(EventHandler<EventArgs> doThis)
Parameters
doThisEventHandler<EventArgs>
Returns
OnExpansionChange(Action<PmpGroup, bool>)
event handler for when user expands the group
public IPmpTabGroupFluentCheckable 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 IPmpTabFluent SaveGroup()
Returns
SetCheckedStatus(bool)
defines whether a chackable group appears in its checked state by default
public IPmpTabGroupFluentCheckable SetCheckedStatus(bool status = true)
Parameters
statusbool
Returns
SetExpansion(bool)
determines if this PmpGroup is expanded or not
public IPmpTabGroupFluentCheckable SetExpansion(bool isExpanded = true)
Parameters
isExpandedbool
Returns
That()
add extra context to this PmpGroup
public IPmpTabGroupFluentCheckable That()