GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoListGroup Class / TopIndex Property
In This Topic
    TopIndex Property
    In This Topic
    The index of the first visible child, or -1 to specify no scrolling.
    Syntax
    [Category("Appearance")]
    [DefaultValue(-1)]
    [Description("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.

    See Also