RhinoCommon API
RhinoGetStringToCommandOptionName Method (String) |
Convert some arbitrary string value to a valid command option name
removing any invalid characters.
Namespace: Rhino.Input
Assembly: RhinoCommon (in RhinoCommon.dll)

public static string StringToCommandOptionName( string stringToConvert )
Public Shared Function StringToCommandOptionName ( stringToConvert As String ) As String
Parameters
- stringToConvert
- Type: SystemString
String to convert.
Return Value
Type: StringReturns null if the string is null or empty or if it contains nothing but invalid characters. If the converted string is one or more characters in length then the converted value is returned.

Rhino for Windows
Supported in: 6.14