Table of Contents

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

caption string

caption of the control inside the PMP

expanded bool

expansion state of the group upon load

Methods

And()

add extra context to this PmpGroup

public IPmpGroupFluent And()

Returns

IPmpGroupFluent

Color(SysColor)

background color of this group

public IPmpGroupFluent Color(SysColor sysColor)

Parameters

sysColor SysColor

Returns

IPmpGroupFluent

HasTheseControls(IEnumerable<IPmpControl>)

add these controls to the PmpGroup

public IPmpGroupFluent HasTheseControls(IEnumerable<IPmpControl> controls)

Parameters

controls IEnumerable<IPmpControl>

an IEnumerable<T> where T : IPmpControl

Returns

IPmpGroupFluent

HasTheseControls(Func<IEnumerable<IPmpControl>>)

add these controls to the PmpGroup

public IPmpGroupFluent HasTheseControls(Func<IEnumerable<IPmpControl>> controlMaker)

Parameters

controlMaker Func<IEnumerable<IPmpControl>>

function that returns an IEnumerable<T> where T : IPmpControl

Returns

IPmpGroupFluent

IsHidden(bool)

if set to true hides this group by default

public IPmpGroupFluent IsHidden(bool isHidden = true)

Parameters

isHidden bool

Returns

IPmpGroupFluent

OnExpansionChange(Action<PmpGroup, bool>)

event handler for when user expands the group

public IPmpGroupFluent OnExpansionChange(Action<PmpGroup, bool> doThis)

Parameters

doThis Action<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

IPmpGroupFluent

SaveGroup()

save all the changes

public IPmpUiModelFluent SaveGroup()

Returns

IPmpUiModelFluent

SetExpansion(bool)

determines if this PmpGroup is expanded or not

public IPmpGroupFluent SetExpansion(bool isExpanded = true)

Parameters

isExpanded bool

Returns

IPmpGroupFluent

That()

add extra context to this PmpGroup

public IPmpGroupFluent That()

Returns

IPmpGroupFluent