FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid.Util.BaseControls Namespace / ScrollableControl Class / BuildScrollableRectangle Method
Horizontal scroll offset.
Vertical scroll offset.

In This Topic
    BuildScrollableRectangle Method (ScrollableControl)
    In This Topic
    Builds a rectangle that defines the scrollable portion of the control for a given pair of scroll offsets.
    Syntax
    'Declaration
     
    
    Protected Overridable Function BuildScrollableRectangle( _
       ByVal dx As Integer, _
       ByVal dy As Integer _
    ) As Rectangle
    protected virtual Rectangle BuildScrollableRectangle( 
       int dx,
       int dy
    )

    Parameters

    dx
    Horizontal scroll offset.
    dy
    Vertical scroll offset.

    Return Value

    A System.Drawing.Rectangle that defines the scrollable portion of the control.
    Remarks
    This method is for internal use. It allows derived classes to customize the control scrolling behavior.
    See Also