KeyGestureToString(String, IFormatProvider) Method
Returns the current KeyGesture as a string formatted according to the format string and appropriate IFormatProvider
Namespace: Avalonia.InputAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public string ToString(
string? format,
IFormatProvider? formatProvider
)
Public Function ToString (
format As String,
formatProvider As IFormatProvider
) As String
abstract ToString :
format : string *
formatProvider : IFormatProvider -> string
override ToString :
format : string *
formatProvider : IFormatProvider -> string
- format String
- The format to use.
- null or "" or "g" – The Invariant format, uses Enum.ToString() to format Keys.
- "p" – Use platform specific formatting as registerd.
- formatProvider IFormatProvider
- The IFormatProvider to use. If null, uses the appropriate provider registered in the Avalonia Locator, or Invariant.
StringThe formatted string.
IFormattableToString(String, IFormatProvider)