ValueListItem
ZachJohnson.Promptu.UserModel.ValueListItem holds information about values for a ValueList .
Constructors
public ValueListItem(string value)
Initializes a new instance of the ValueListItem class, with the specified value, no translation and no image index.
Exceptions:
System.ArgumentNullException : value is null .
public ValueListItem(string value, int imageIndex)
Initializes a new instance of the ValueListItem class, with the specified value and image index, and no translation.
Exceptions:
System.ArgumentNullException : value is null .
public ValueListItem(string value, string translation)
Initializes a new instance of the ValueListItem class, with the specified value and translation, and no image index.
Exceptions:
System.ArgumentNullException : value is null .
public ValueListItem(string value, string translation, int imageIndex)
Initializes a new instance of the ValueListItem class, with the specified value, translation, and image index.
Exceptions:
System.ArgumentNullException : value is null .
public ValueListItem(string value, string translation, bool allowTranslation)
Initializes a new instance of the ValueListItem class, with the specified value, translation, and no image index.
If allowTranslation is true , translation is allowed for the ValueListItem ; otherwise, translation is not allowed.
Exceptions:
System.ArgumentNullException : value is null .
public ValueListItem(string value, string translation, bool allowTranslation, int imageIndex)
Initializes a new instance of the ValueListItem class, with the specified value, translation, and image index.
If allowTranslation is true , translation is allowed for the ValueListItem ; otherwise, translation is not allowed.
Exceptions:
System.ArgumentNullException : value is null .
Properties
public bool AllowTranslation { get; }
Gets a value indicating whether translation is allowed for the ValueListItem .
public int ImageIndex { get; }
Gets the index of the image in the parent ValueList 's Images to use for the ValueListItem .
public string Translation { get; }
Gets the translation for the ValueListItem 's Value .
public string Value { get; }
Gets the ValueListItem 's value.
Methods
|