Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / StyleInfo Class / CellPadding Property
Example


In This Topic
    CellPadding Property (StyleInfo)
    In This Topic
    Gets or sets the number of spaces to add to the cell(s) in pixels.
    Syntax
    'Declaration
     
    Public Overridable Property CellPadding As CellPadding
    'Usage
     
    Dim instance As StyleInfo
    Dim value As CellPadding
     
    instance.CellPadding = value
     
    value = instance.CellPadding
    public virtual CellPadding CellPadding {get; set;}
    Example
    This example sets the CellPadding property.
    FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();           
    si.CellPadding = new FarPoint.Win.Spread.CellPadding(2);
    fpSpread1.ActiveSheet.DefaultStyle = si;
    Dim si As New FarPoint.Win.Spread.StyleInfo()
    si.CellPadding = New FarPoint.Win.Spread.CellPadding(2)
    fpSpread1.ActiveSheet.DefaultStyle = si
    See Also