LayerTableSetCurrentLayerIndex Method |
At all times, there is a "current" layer. Unless otherwise specified, new objects
are assigned to the current layer. The current layer is never locked, hidden, or deleted.
Namespace:
Rhino.DocObjects.Tables
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public bool SetCurrentLayerIndex(
int layerIndex,
bool quiet
)
Public Function SetCurrentLayerIndex (
layerIndex As Integer,
quiet As Boolean
) As Boolean
Parameters
- layerIndex
- Type: SystemInt32
Value for new current layer. 0 <= layerIndex < LayerTable.Count.
The layer's mode is automatically set to NormalMode.
- quiet
- Type: SystemBoolean
if true, then no warning message box pops up if the current layer request can't be satisfied.
Return Value
Type:
Booleantrue if current layer index successfully set.
See Also