Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / SetInsideBorder Method
Cell range to which to apply borders
Border to put around cells in the range
Example


In This Topic
    SetInsideBorder Method
    In This Topic
    Sets borders on the inside of a range of cells.
    Syntax
    'Declaration
     
    Public Overridable Sub SetInsideBorder( _
       ByVal cr As CellRange, _
       ByVal border As IBorder _
    ) 
    'Usage
     
    Dim instance As SheetView
    Dim cr As CellRange
    Dim border As IBorder
     
    instance.SetInsideBorder(cr, border)
    public virtual void SetInsideBorder( 
       CellRange cr,
       IBorder border
    )

    Parameters

    cr
    Cell range to which to apply borders
    border
    Border to put around cells in the range
    Remarks
    This method sets grid line type borders around the cells inside a range, except for the outside (or outline) of the range. To apply borders to the outside of a range of cells, refer to the SetOutlineBorder method.
    Example
    This example uses the SetInsideBorder method.
    fpSpread1.Sheets[0].SetInsideBorder(new FarPoint.Win.Spread.Model.CellRange(0, 0, 2, 2), new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised));
    fpSpread1.Sheets(0).SetInsideBorder(New FarPoint.Win.Spread.Model.CellRange(0, 0, 2, 2), New FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised))
    See Also