Method GetText
GetText(KnownButton)
Retrieves the text associated with the specified button index.
public static string? GetText(KnownButton index)
Parameters
indexKnownButtonThe index of the button whose text is to be retrieved.
Returns
Remarks
Ensure that the button index provided is valid and corresponds to a known button. The method initializes necessary data before retrieving the text.