Northwoods.Go Assembly > Northwoods.Go Namespace > GoListGroup Class : TopIndex Property |
'Declaration <DescriptionAttribute("The index of the first visible list item")> <CategoryAttribute("Appearance")> <DefaultValueAttribute()> Public Property TopIndex As Integer
[DescriptionAttribute("The index of the first visible list item")] [CategoryAttribute("Appearance")] [DefaultValueAttribute()] 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
.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2