| DialogsShowSelectLayerDialog Method  | 
 
            Displays Rhino's single layer selection dialog.
            
 
    Namespace: 
   Rhino.UI
    Assembly:
   RhinoCommon (in RhinoCommon.dll)
Since: 5.0
 Syntax
Syntaxpublic static bool ShowSelectLayerDialog(
	ref int layerIndex,
	string dialogTitle,
	bool showNewLayerButton,
	bool showSetCurrentButton,
	ref bool initialSetCurrentState
)
Public Shared Function ShowSelectLayerDialog ( 
	ByRef layerIndex As Integer,
	dialogTitle As String,
	showNewLayerButton As Boolean,
	showSetCurrentButton As Boolean,
	ByRef initialSetCurrentState As Boolean
) As Boolean
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
See Also