Spread Windows Forms 12.0 Product Documentation
AddRange Method (FpScrollBarButtonCollection)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpScrollBarButtonCollection Class : AddRange Method
Collection
Adds a range of objects of the collection.
Syntax
'Declaration
 
Public Sub AddRange( _
   ByVal c As ICollection _
) 
'Usage
 
Dim instance As FpScrollBarButtonCollection
Dim c As ICollection
 
instance.AddRange(c)
public void AddRange( 
   ICollection c
)

Parameters

c
Collection
Example
This example adds a range of buttons to the scrollbar.
FarPoint.Win.Spread.FpScrollBarButtonCollection buttons = new FarPoint.Win.Spread.FpScrollBarButtonCollection();
buttons.AddRange(new FarPoint.Win.Spread.FpScrollBarButton[] {
            new FarPoint.Win.Spread.FpScrollBarButtonBackwardLine(),
            new FarPoint.Win.Spread.FpScrollBarComboThumb(),
            new FarPoint.Win.Spread.FpScrollBarButtonForwardLine()});
fpSpread1.VerticalScrollBar.Buttons = buttons;
Dim buttons As New FarPoint.Win.Spread.FpScrollBarButtonCollection
buttons.AddRange(New FarPoint.Win.Spread.FpScrollBarButton() {New FarPoint.Win.Spread.FpScrollBarButtonBackwardLine(), New
FarPoint.Win.Spread.FpScrollBarComboThumb(), New FarPoint.Win.Spread.FpScrollBarButtonForwardLine()})
FpSpread1.VerticalScrollBar.Buttons = buttons
See Also

Reference

FpScrollBarButtonCollection Class
FpScrollBarButtonCollection Members