Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLSheet Class / GetRangeToRepeat Method
OUT: index of the first title row (repeated at top).
OUT: index of the last title row (repeated at top).
OUT: index of the first title column (repeated at left).
OUT: index of the last title column (repeated at left).

In This Topic
    GetRangeToRepeat Method
    In This Topic
    Returns a value indicating whether print titles are specified for this worksheet. (Print titles are rows repeated at top, and columns repeated at left of each page when the sheet is printed.) Output parameters indicate the indexes of title rows and columns.
    Syntax
    'Declaration
     
    
    Public Function GetRangeToRepeat( _
       ByRef rowFrom As Integer, _
       ByRef rowTo As Integer, _
       ByRef colFrom As Integer, _
       ByRef colTo As Integer _
    ) As Boolean
    public bool GetRangeToRepeat( 
       out int rowFrom,
       out int rowTo,
       out int colFrom,
       out int colTo
    )

    Parameters

    rowFrom
    OUT: index of the first title row (repeated at top).
    rowTo
    OUT: index of the last title row (repeated at top).
    colFrom
    OUT: index of the first title column (repeated at left).
    colTo
    OUT: index of the last title column (repeated at left).

    Return Value

    True if title rows or columns are specified for this sheet, false otherwise.
    See Also