If the value of LabelChoices is non-null and non-empty, this method rounds the val value to an integer and uses that as an index into that LabelChoices list to get an object that is converted to a String to be returned. Otherwise this returns the string produced by formatting the value using LabelFormat. See also PaintLabel.