Method ToString
ToString(bool)
Converts the current key and modifier combination to its string representation.
public virtual string ToString(bool forUser)
Parameters
forUserboolA value indicating whether the string representation should be formatted for user display. If true, the output is tailored for user-friendly display; otherwise, it is formatted for internal or programmatic use.
Returns
- string
A string that represents the key and modifier combination. If modifiers are present, they are included in the output, separated by the appropriate separator based on the
forUservalue.
ToString()
Returns a string that represents the current object.
public override string ToString()