Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / SheetCornerSpanModel Property
Example


In This Topic
    SheetCornerSpanModel Property
    In This Topic
    Gets or sets the spanned cells for the sheet corner.
    Syntax
    'Declaration
     
    Public Property SheetCornerSpanModel As ISheetSpanModel
    'Usage
     
    Dim instance As SheetView
    Dim value As ISheetSpanModel
     
    instance.SheetCornerSpanModel = value
     
    value = instance.SheetCornerSpanModel
    public ISheetSpanModel SheetCornerSpanModel {get; set;}
    Example
    This example sets the models for a sheet corner.
    FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView;
    FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo();
    info.Border = new FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Teal, 2);
    sv.SheetCorner.ColumnCount = 3;
    sv.SheetCorner.RowCount = 3;
    sv.SheetCornerSpanModel.Add(0, 0, 2, 2);
    sv.SheetCornerStyleModel.SetDirectInfo(0, 0, info);
    sv.SheetCornerRowAxisModel.SetSize(0, 100);
    sv.SheetCornerColumnAxisModel.SetSize(0, 100);
    FpSpread1.Sheets.Add(sv);
    ListBox1.Items.Add(sv.SheetCornerDataModel.ColumnCount.ToString());
    ListBox1.Items.Add(sv.SheetCornerDataModel.RowCount.ToString());
    ListBox1.Items.Add(sv.SheetCorner.ToString());
    Dim sv As New FarPoint.Web.Spread.SheetView
    Dim info As New FarPoint.Web.Spread.StyleInfo()
    info.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, System.Drawing.Color.Teal, 2)
    sv.SheetCorner.ColumnCount = 3
    sv.SheetCorner.RowCount = 3
    sv.SheetCornerSpanModel.Add(0, 0, 2, 2)
    sv.SheetCornerStyleModel.SetDirectInfo(0, 0, info)
    sv.SheetCornerRowAxisModel.SetSize(0, 100)
    sv.SheetCornerColumnAxisModel.SetSize(0, 100)
    FpSpread1.Sheets.Add(sv)
    ListBox1.Items.Add(sv.SheetCornerDataModel.ColumnCount.ToString())
    ListBox1.Items.Add(sv.SheetCornerDataModel.RowCount.ToString())
    ListBox1.Items.Add(sv.SheetCorner.ToString())
    See Also