Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ChangeType Enumeration
Example Example


In This Topic
    ChangeType Enumeration
    In This Topic
    Specifies the type of change (movement) of the scroll bar button.
    Syntax
    'Declaration
     
    Public Enum ChangeType 
       Inherits System.Enum
    'Usage
     
    Dim instance As ChangeType
    public enum ChangeType : System.Enum 
    Members
    MemberDescription
    LargeChange Indicates a large amount of movement of the scroll bar button
    MoveToEnd Indicates movement to the right (horiztonally) or to the bottom (vertically) of the scroll bar button
    MoveToHome Indicates movement to the left (horiztonally) or to the top (vertically) of the scroll bar button
    None Indicates no movement of the scroll bar button
    SmallChange Indicates a small amount of movement of the scroll bar button
    Example
    This example uses the ChangeType enumeration.
    fpSpread1.VerticalScrollBar.Renderer = null;
    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;
    foreach (FarPoint.Win.Spread.FpScrollBarButton btn in buttons) {
        btn.ChangeType = FarPoint.Win.Spread.ChangeType.MoveToEnd;
        btn.ChangeValue = 4;
    }
    
    FpSpread1.VerticalScrollBar.Renderer = Nothing
    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
    
    Dim btn As FarPoint.Win.Spread.FpScrollBarButton
    For Each btn In buttons
    btn.ChangeType = FarPoint.Win.Spread.ChangeType.MoveToEnd
    btn.ChangeValue = 4
    Next
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.ChangeType

    See Also