In This Article

IKeyTipTextGenerator Interface

Defines an object for automatically generating key tip text for controls.

public interface IKeyTipTextGenerator

Methods

FromCommand(ICommand)

Attempts to create the key tip text from a command.

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.

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.

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.