In This Article

ILabelGenerator Interface

Defines an object for automatically generating control labels.

public interface ILabelGenerator

Methods

FromCommand(ICommand?)

Attempts to create a label from a command.

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

The command used to generate the label.

Returns

string:

A string value for the label, or null if a value could not be determined.

FromKey(string?)

Attempts to create a label from a key.

string? FromKey(string? key)
Parameter Type Description
key string

The key used to generate the label.

Returns

string:

A string value for the label, or null if a value could not be determined.

Extension Methods