The default tag is the index of the list or prior static text. One-item lists are identified by their text.
In addition to the properties it inherits from the AnyWin class and the Control class, HtmlList has the following properties:
Property | Type | Description |
---|---|---|
$BackColor | STRING | Background color for the first character in the list: the name of the color if it matches one of the colors in Silk Test Classic's Table of Colors; otherwise an RGB value (red, green, blue). |
$Contents | LIST OF STRING | The contents of the entire list. For more information, see the GetContents function. |
$FontName | STRING | Font name |
$FontSize | INTEGER | Font size in points |
$FontStyle | FONTSTYLE | Font style |
$FormattedText | LIST OF STRING | The actual text as it is being displayed for the entire list. For more information, see the GetFormattedText function. |
$TextColor | STRING | Text color of the first character in the list: the name of the color if it matches one of the colors in Silk Test Classic's Table of Colors; otherwise an RGB value (red, green, blue). |
The properties $BackColor, $FontName, $FontSize, $FontStyle, and $TextColor apply to the first character, first line of the entire list. Use the GetProperty function to access these properties for the first character of the list.
To get the properties of a specified position in a list item, use the GetItemProp function.
For more information, see About properties.