Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Workbook Class / CanCellOverflow Property
Example


In This Topic
    CanCellOverflow Property (Workbook)
    In This Topic
    Gets or sets whether data can overflow into adjacent empty cells in the component.
    Syntax
    'Declaration
     
    <DefaultValueAttribute(False)>
    Public Property CanCellOverflow As Boolean
    'Usage
     
    Dim instance As Workbook
    Dim value As Boolean
     
    instance.CanCellOverflow = value
     
    value = instance.CanCellOverflow
    [DefaultValue(false)]
    public bool CanCellOverflow {get; set;}
    Example
    This example uses the CanCellOverflow property.
    gcSpreadSheet1.CanCellOverflow = true;
    gcSpreadSheet1.Sheets[0].Cells[1, 2].HorizontalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellHorizontalAlignment.Right;
    gcSpreadSheet1.Sheets[0].Cells[2, 2].HorizontalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellHorizontalAlignment.Center;
    gcSpreadSheet1.Sheets[0].Cells[3, 2].HorizontalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellHorizontalAlignment.Left;
    GcSpreadSheet1.CanCellOverflow = True
    GcSpreadSheet1.Sheets(0).Cells(1, 2).HorizontalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellHorizontalAlignment.Right
    GcSpreadSheet1.Sheets(0).Cells(2, 2).HorizontalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellHorizontalAlignment.Center
    GcSpreadSheet1.Sheets(0).Cells(3, 2).HorizontalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellHorizontalAlignment.Left
    See Also