RhinoCommon API
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 )
Public Shared Function StringToCommandOptionName ( englishString As String, localizedString As String ) As LocalizeStringPair
Parameters
- englishString
- Type: SystemString
English string to convert. - localizedString
- Type: SystemString
Optional localized string to convert.
Return Value
Type: LocalizeStringPairReturns 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.

Rhino for Windows
Supported in: 6.14