Click or drag to resize

RhinoGetStringToCommandOptionName Method (String, 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 LocalizeStringPair StringToCommandOptionName(
	string englishString,
	string localizedString


Type: SystemString
English string to convert.
Type: SystemString
Optional localized string to convert.

Return Value

Type: LocalizeStringPair
Returns null if the strings are null or empty or if they contain nothing but invalid characters. If the converted string is one or more charcters in length then a LocalizeStringPair is returned characters the converted string values. If the localized string is null or empty then the English string is used as the localized value.
Version Information

Rhino for Windows

Supported in: 6.27
See Also