LabelGenerator Class
A helper class for automatically generating control labels.
public class LabelGenerator : ILabelGenerator
- Inheritance:
- object object
- Implements:
- ILabelGenerator
Constructors
LabelGenerator()
Initializes an instance of the class.
public LabelGenerator()
Methods
FromCommand(ICommand?)
Attempts to create a label from a command.
public virtual 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.
public virtual 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.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()