Click or drag to resize

DialogsShowSelectLayerDialog Method

Displays Rhino's single layer selection dialog.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static bool ShowSelectLayerDialog(
	ref int layerIndex,
	string dialogTitle,
	bool showNewLayerButton,
	bool showSetCurrentButton,
	ref bool initialSetCurrentState
)

Parameters

layerIndex
Type: SystemInt32
Initial layer for the dialog, and will receive selected layer if function returns DialogResult.OK.
dialogTitle
Type: SystemString
The dialog title.
showNewLayerButton
Type: SystemBoolean
true if the new layer button will be visible.
showSetCurrentButton
Type: SystemBoolean
true if the set current button will be visible.
initialSetCurrentState
Type: SystemBoolean
true if the current state will be initially set.

Return Value

Type: Boolean
True if the dialog was closed with the OK button. False if the dialog was closed with escape.
See Also