GoDiagram Web Reference
TopIndex Property

The index of the first visible child, or -1 to specify no scrolling.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<CategoryAttribute("Appearance")>
<DescriptionAttribute("The index of the first visible list item")>
Public Property TopIndex As Integer
[DefaultValueAttribute()]
[CategoryAttribute("Appearance")]
[DescriptionAttribute("The index of the first visible list item")]
public int TopIndex {get; set;}

Property Value

The default value is -1. A value greater or equal to the count of items in this list will cause no items to be painted.
Remarks

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 GoButtons) can be added to a group or node that includes this GoListGroup.

Requirements

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

See Also

Reference

GoListGroup Class
GoListGroup Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback