KeyGestureFormatInfo Class

Provides platform specific formatting information for the KeyGesture class

Definition

Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public sealed class KeyGestureFormatInfo : IFormatProvider
Inheritance
Object    KeyGestureFormatInfo
Implements
IFormatProvider

Properties

Alt The string used to represent Alt on the appropriate platform. Defaults to "Alt".
Ctrl The string used to represent Ctrl on the appropriate platform. Defaults to "Ctrl".
Invariant The Invariant format. Only uses strings straight from the appropriate Enums.
Meta The string used to represent Meta on the appropriate platform. Defaults to "Cmd".
Shift The string used to represent Shift on the appropriate platform. Defaults to "Shift".

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FormatKey(Key) Checks the platformKeyOverrides and s_commonKeyOverrides Dictionaries, in order, for the appropriate string to represent the given Key on this platform. NOTE: If platformKeyOverrides is null, this is assumed to be the Invariant and the Dictionaries are not checked. The plain Enum string is returned instead.
GetFormat(Type) 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetInstance(IFormatProvider) Gets the most appropriate KeyGestureFormatInfo for the IFormatProvider requested. This will be, in order: 1. The provided IFormatProvider as a KeyGestureFormatInfo 2. The currently registered platform specific KeyGestureFormatInfo, if present. 3. The Invariant otherwise.
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also