[Category("Appearance")] [DefaultValue(-1)] [Description("The index of the first visible list item")] public int TopIndex {get; set;}
[Category("Appearance")] [DefaultValue(-1)] [Description("The index of the first visible list item")] public int TopIndex {get; set;}
This property can be incremented or decremented to cause the list to "scroll". When this value is zero, the first item is positioned and drawn at the top (or at the left, if Orientation is Orientation.Horizontal
). Following items are positioned after, until either there are no more or until the next item will not fit within the current Bounds
.
When the value is greater than zero, the items whose index is less than this value are positioned at the top-left corner of the group and are made not Visible
and not Printable
.
When the value is -1, all items are assumed to be Visible
and Printable
, and the result of ComputeBounds will be the size of the group including all of its items, laid out in a column or row.
Although this property is very useful in supporting scrolling, this group does not provide any scroll buttons or a scroll bar or any other "controls" to allow the user to "scroll". Such objects (such as GoButton
s) can be added to a group or node that includes this GoListGroup
.