Skip to content

RhinoObject.IsSubObjectSelectable

Public Class

Reports if a sub-object can be selected.

Namespace: Rhino.DocObjects

Assembly: RhinoCommon (in RhinoCommon.dll)

**Since:**5.0

Syntax

public bool IsSubObjectSelectable(
ComponentIndex componentIndex,
bool ignoreSelectionState
)

Parameters

componentIndex

Type: Rhino.Geometry.ComponentIndex
index of sub-object to check.

ignoreSelectionState

Type:System.Boolean
If true, then selected objects are selectable. If false, then selected objects are not selectable.

Return Value

Type:Boolean
true if the specified sub-object can be selected.

Remarks

Objects that are locked, hidden, or on locked or hidden layers cannot be selected. If IsSelectableWithGripsOn() returns false, then that object is not selectable if it has grips turned on.