RhinoGet.StringToCommandOptionName Method (String)

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)
Syntax
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: String
Returns 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.
Version Information

Rhino for Windows

Supported in: 6.14
See Also