Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / CellSpacing Property
Example


In This Topic
    CellSpacing Property (SheetView)
    In This Topic
    Gets or sets the cell spacing to use in the displayed HTML page.
    Syntax
    'Declaration
     
    
    Public Property CellSpacing As Integer
    'Usage
     
    
    Dim instance As SheetView
    Dim value As Integer
     
    instance.CellSpacing = value
     
    value = instance.CellSpacing
    public int CellSpacing {get; set;}

    Property Value

    Integer number of pixels for table cell spacing
    Remarks

    This property sets the distance between the cells on all four sides of the cell.

    HTML tables that represent the displayed sheet can specify a spacing for the cells in the table using the CELLSPACING attribute of the TABLE tag. The cell spacing specifies how much space there is between table cells.

    To set the cell padding, which is the spacing between borders and contents of a cell, refer to the Margin property for the Cell.

    Example
    This example assigns a SheetView object to the active sheet and creates a Border object. The border is then applied to all the cells in the sheet, and the cells spacing is increased to 5.
    See Also