Accelerator.FromString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new Accelerator for the text.
public:
static Microsoft::Maui::Controls::Accelerator ^ FromString(System::String ^ text);
public static Microsoft.Maui.Controls.Accelerator FromString (string text);
static member FromString : string -> Microsoft.Maui.Controls.Accelerator
Public Shared Function FromString (text As String) As Accelerator
Parameters
- text
- String
A string that represents an accelerator key combination.
Returns
The new Accelerator for the text.
Remarks
text
may contain a combination of "CTRL", "CMD", "ALT", "SHIFT", "FN", or "WIN", in any combination of upper or lower case letters, as well as any available keys on the platform. The returned Accelerator has its Modifiers array filled with the specifed modifiers, and its Keys array filled with the remaining keys.
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro