PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / FindInputFragment Method
The 0-based index of the page to start the search at.
Specifies whether to search forward or backward.

In This Topic
    FindInputFragment Method (SampleC1PrintDocument)
    In This Topic
    Searches for the first occurrence of a C1.C1Preview.RenderInputFragment object in the current document.
    Syntax
    'Declaration
     
    Public Function FindInputFragment( _
       ByVal startPageIndex As Integer, _
       ByVal forward As Boolean _
    ) As RenderInputFragment
    public RenderInputFragment FindInputFragment( 
       int startPageIndex,
       bool forward
    )

    Parameters

    startPageIndex
    The 0-based index of the page to start the search at.
    forward
    Specifies whether to search forward or backward.

    Return Value

    The C1.C1Preview.RenderInputFragment object that was found, or null.
    See Also