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)
Syntaxpublic int SelectGrips(
IEnumerable<GripObject> grips,
bool select
)
Public Function SelectGrips (
grips As IEnumerable(Of GripObject),
select As Boolean
) As Integer
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:
Int32Number of grips successfully selected or deselected.
RemarksSelectObjects 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