In This Article

KeyTipTextGenerator Class

A helper class for automatically generating key tip text for controls.

public class KeyTipTextGenerator : IKeyTipTextGenerator
Inheritance:
object object
Implements:
IKeyTipTextGenerator

Constructors

KeyTipTextGenerator()

Initializes an instance of the class.

public KeyTipTextGenerator()

Methods

FromCommand(ICommand?)

Attempts to create the key tip text from a command.

public virtual string? FromCommand(ICommand? command)
Parameter Type Description
command ICommand

The command to examine.

Returns

string:

A string value for the key tip text, or null if a value could not be determined.

FromKeyGesture(KeyGesture?)

Attempts to create the key tip text from a key gesture.

public virtual string? FromKeyGesture(KeyGesture? keyGesture)
Parameter Type Description
keyGesture KeyGesture

The key gesture to examine.

Returns

string:

A string value for the key tip text, or null if a value could not be determined.

FromLabel(string?)

Attempts to create the key tip text from a label.

public virtual string? FromLabel(string? label)
Parameter Type Description
label string

The label to examine.

Returns

string:

A string value for the key tip text, or null if a value could not be determined.

Inherited Members

Extension Methods