Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / Cell Class / Border Property
Example


In This Topic
    Border Property (Cell)
    In This Topic
    Gets or sets the border for a cell.
    Syntax
    'Declaration
     
    Public Property Border As IBorder
    'Usage
     
    Dim instance As Cell
    Dim value As IBorder
     
    instance.Border = value
     
    value = instance.Border
    public IBorder Border {get; set;}

    Property Value

    IBorder object with the border
    Remarks

    For an overview and instructions for setting cell borders, see Customizing Cell Borders.

    Example
    This example creates a border around the first cell in the spreadsheet.
    FarPoint.Win.Spread.Cell acell;
    FarPoint.Win.BevelBorder bord = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue);
    acell = fpSpread1.ActiveSheet.Cells[0, 0];
    acell.Border = bord;
    Dim acell As FarPoint.Win.Spread.Cell
    Dim bord As New FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue)
    acell = fpSpread1.ActiveSheet.Cells(0, 0)
    acell.Border = bord
    See Also