Share via


Accelerator Class

Definition

Caution

Use KeyboardAccelerator instead.

Represents a shortcut key for a MenuItem.

public ref class Accelerator
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.AcceleratorTypeConverter))]
[System.Obsolete("Use KeyboardAccelerator instead.")]
public class Accelerator
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.AcceleratorTypeConverter))>]
[<System.Obsolete("Use KeyboardAccelerator instead.")>]
type Accelerator = class
Public Class Accelerator
Inheritance
Accelerator
Attributes

Properties

Keys

For internal use only.

Modifiers

Methods

Equals(Object)

Compares this accelerator to obj and returns true if obj is a of type Accelerator and is equal to this one. Otherwise, returns false.

FromString(String)

Returns a new Accelerator for the text.

GetHashCode()

Returns the hashcode for the lower case string that represents the shortcut key.

ToString()

Returns a text representation of the accelerator.

Operators

Implicit(String to Accelerator)

Applies to