Click or drag to resize

ObjectTableSelectGrips Method (IEnumerableGripObject, Boolean)

Selects or deselects a collection of grips in one pass, so a native CRhinoOnChangeObjectSelectState watcher sees one change rather than one per grip.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int SelectGrips(
	IEnumerable<GripObject> grips,
	bool select
)

Parameters

grips
Type: System.Collections.GenericIEnumerableGripObject
Grips to select or deselect, from GetGrips. They may belong to several objects. Grips whose owner has since had its grips turned off, and anything in the collection that is not a grip, are skipped.
select
Type: SystemBoolean
If true, the grips will be selected, otherwise deselected.

Return Value

Type: Int32
Number of grips successfully selected or deselected.
Remarks
SelectObjects and DeselectObjects do not report grips whichever way they are selected; the old event watchers have filtered grips out since Rhino 5 because grip pointers do not outlive the selection.
See Also