Table of Contents

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

caption string

caption of the control inside the PMP

visible bool
isChecked bool
expanded bool

expansion state of the group upon load

Methods

And()

add extra context to this PmpGroup

public IPmpGroupFluentCheckable And()

Returns

IPmpGroupFluentCheckable

Color(SysColor)

background color of this group

public IPmpGroupFluentCheckable Color(SysColor sysColor)

Parameters

sysColor SysColor

Returns

IPmpGroupFluentCheckable

HasTheseControls(IEnumerable<IPmpControl>)

add these controls to the PmpGroup

public IPmpGroupFluentCheckable HasTheseControls(IEnumerable<IPmpControl> controls)

Parameters

controls IEnumerable<IPmpControl>

an IEnumerable<T> where T : IPmpControl

Returns

IPmpGroupFluentCheckable

HasTheseControls(Func<IEnumerable<IPmpControl>>)

add these controls to the PmpGroup

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

Parameters

controlMaker Func<IEnumerable<IPmpControl>>

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

Returns

IPmpGroupFluentCheckable

IsHidden(bool)

if set to true hides this group by default

public IPmpGroupFluentCheckable IsHidden(bool isHidden = true)

Parameters

isHidden bool

Returns

IPmpGroupFluentCheckable

OnChecked(EventHandler<bool>)

fires when user check/un-check the gourp check box

public IPmpGroupFluentCheckable OnChecked(EventHandler<bool> doThis)

Parameters

doThis EventHandler<bool>

Returns

IPmpGroupFluentCheckable

PmpGroupCheckable

OnDisplaying(EventHandler<EventArgs>)

fires when this group is displayed on the screen

public IPmpGroupFluentCheckable OnDisplaying(EventHandler<EventArgs> doThis)

Parameters

doThis EventHandler<EventArgs>

Returns

IPmpGroupFluentCheckable

OnExpansionChange(Action<PmpGroup, bool>)

event handler for when user expands the group

public IPmpGroupFluentCheckable 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

IPmpGroupFluentCheckable

SaveGroup()

save all the changes

public IPmpUiModelFluent SaveGroup()

Returns

IPmpUiModelFluent

SetCheckStatus(bool)

defines whether a chackable group appears in its checked state by default

public IPmpGroupFluentCheckable SetCheckStatus(bool status = true)

Parameters

status bool

Returns

IPmpGroupFluentCheckable

SetExpansion(bool)

determines if this PmpGroup is expanded or not

public IPmpGroupFluentCheckable SetExpansion(bool isExpanded = true)

Parameters

isExpanded bool

Returns

IPmpGroupFluentCheckable

That()

add extra context to this PmpGroup

public IPmpGroupFluentCheckable That()

Returns

IPmpGroupFluentCheckable