FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > FpScrollBarButtonCollection クラス : AddRange メソッド |
'Declaration Public Sub AddRange( _ ByVal c As ICollection _ )
'使用法 Dim instance As FpScrollBarButtonCollection Dim c As ICollection instance.AddRange(c)
public void AddRange( ICollection c )
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