ValueList
ZachJohnson.Promptu.UserModel.ValueList exposes the functionality of the corresponding Value List in the UI to .NET functions.
It provides a list of values and (optionally) translation values to provide as suggestions for command and function parameters,
with a finer grain of control over translation values than its UI counterpart.
Constructors
public ValueList()
Initializes a new instance of the ValueList class, with no namespace interpretation and no item translation.
public ValueList(bool useNamespaceInterpretation, bool useItemTranslations)
Initializes a new instance of the ValueList class, using the specified values for using namespace interpretation and item translation.
If useNamespaceInterpretation is true, Promptu will interpret dots '.' in the values as namespace separators.
Properties
public int Count { get; }
Returns the number of items in the ValueList .
public List<Image> Images { get; }
Gets the list of images to use when displaying the ValueList 's items.
public ValueListItem this[int index] { get; }
Gets the ValueListItem at the specified index.
Exceptions:
System.ArgumentOutOfRangeException : index is less than 0 or greater than or equal to Count .
public ValueListItem this[string value] { get; }
Gets the ValueListItem with the specified value, case-insensitive.
Exceptions:
System.ArgumentNullException : value is null .
public bool UseItemTranslations { get; }
Gets a value indicating whether the ValueList uses item translation.
public bool UseNamespaceInterpretation { get; }
Gets a value indicating whether the ValueList uses namespace interpretation.
Static Methods
public static ValueList FromXml(XmlNode node)
Constructs a ValueList from its XML form.
Exceptions:
System.ArgumentNullException : node is null .
ZachJohnson.Promptu.LoadException : The 'name' attribute is either empty or missing from the node .
Methods
|