Description:

Displays Rhino's single layer selection dialog.

Syntax:
public static Boolean ShowSelectLayerDialog(
ref Int32 layerIndex,
String dialogTitle,
Boolean showNewLayerButton,
Boolean showSetCurrentButton,
ref Boolean initialSetCurrentState
)
Parameters:
  • layerIndex
  • Type: System.Int32
  • Initial layer for the dialog, and will receive selected layer if function returns DialogResult.OK.
  • dialogTitle
  • Type: System.String
  • The dialog title.
  • showNewLayerButton
  • Type: System.Boolean
  • True if the new layer button will be visible.
  • showSetCurrentButton
  • Type: System.Boolean
  • True if the set current button will be visible.
  • initialSetCurrentState
  • Type: System.Boolean
  • True if the current state will be initially set.
Returns:
Type: Boolean
True if the dialog was closed with the OK button. False if the dialog was closed with escape.
Available since:
5.0

/
/
/
ShowSelectLayerDialog

ShowSelectLayerDialog method

Class:  Rhino.UI.Dialogs

Nothing found