Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / GeneralCellType Class / Multiline Property

In This Topic
    Multiline Property (GeneralCellType)
    In This Topic
    Gets or sets whether the cell allows multiple lines of text.
    Public Overridable Property Multiline As Boolean
    Dim instance As GeneralCellType
    Dim value As Boolean
    instance.Multiline = value
    value = instance.Multiline
    public virtual bool Multiline {get; set;}

    Property Value

    true if multiple lines are allowed; false otherwise

    This property determines whether the cell allows multiple lines of text by accepting <CR><LF> (carriage return, line-feed) to indicate a new line.

    FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType();
    g.Multiline = true;
    FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
    FpSpread1.ActiveSheetView.Cells[0, 0].Text = "This is a test for multiline";
    Dim g As New FarPoint.Web.Spread.GeneralCellType
    g.Multiline = True
    FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g
    FpSpread1.ActiveSheetView.Cells(0, 0).Text = "This is a test for multiline"
    See Also