ToString(String, IFormatProvider) Method
Returns the current KeyGesture as a string formatted according to the format string and appropriate IFormatProvider
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
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
Parameters
- String
- The format to use. [...]
- IFormatProvider
- The IFormatProvider to use. If null, uses the appropriate provider registered in the Avalonia Locator, or Invariant.
Return Value
String
The formatted string.
Implements
IFormattable.ToString(String, IFormatProvider)Exceptions
FormatException | Thrown if the format string is not null, "", "g", or "p" |