Class PmpGroupFluent
- Namespace
- Hymma.Solidworks.Addins.Fluent
- Assembly
- Hymma.Solidworks.Addins.Fluent.dll
a group in property manager page that host the IPmpControl
public class PmpGroupFluent : PmpGroup, IWrapSolidworksObject<IPropertyManagerPageGroup>, IReleaseSolidworksObject, IPmpGroupFluent, IPmpGroupFluentBase<IPmpGroupFluent>
- Inheritance
-
PmpGroupFluent
- Implements
-
IWrapSolidworksObject<IPropertyManagerPageGroup>
- Inherited Members
Constructors
PmpGroupFluent(string, bool)
default constructor
public PmpGroupFluent(string caption, bool expanded)
Parameters
captionstringcaption of the control inside the PMP
expandedboolexpansion state of the group upon load
Methods
And()
add extra context to this PmpGroup
public IPmpGroupFluent And()
Returns
Color(SysColor)
background color of this group
public IPmpGroupFluent Color(SysColor sysColor)
Parameters
sysColorSysColor
Returns
HasTheseControls(IEnumerable<IPmpControl>)
add these controls to the PmpGroup
public IPmpGroupFluent 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 IPmpGroupFluent 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 IPmpGroupFluent IsHidden(bool isHidden = true)
Parameters
isHiddenbool
Returns
OnExpansionChange(Action<PmpGroup, bool>)
event handler for when user expands the group
public IPmpGroupFluent 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
SetExpansion(bool)
determines if this PmpGroup is expanded or not
public IPmpGroupFluent SetExpansion(bool isExpanded = true)
Parameters
isExpandedbool
Returns
That()
add extra context to this PmpGroup
public IPmpGroupFluent That()