Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView.DocumentModels Class / ColumnHeaderSpan Property
Example


In This Topic
    ColumnHeaderSpan Property
    In This Topic
    Gets or sets the column header span model.
    Syntax
    'Declaration
     
    Public Property ColumnHeaderSpan As ISheetSpanModel
    'Usage
     
    Dim instance As SheetView.DocumentModels
    Dim value As ISheetSpanModel
     
    instance.ColumnHeaderSpan = value
     
    value = instance.ColumnHeaderSpan
    public ISheetSpanModel ColumnHeaderSpan {get; set;}

    Property Value

    ISheetSpanModel object containing the span model
    Exceptions
    ExceptionDescription
    Model is not specified (or specified value is null)
    Example
    This example adds a span to the column headers.
    FarPoint.Win.Spread.SheetView.DocumentModels dm = new FarPoint.Win.Spread.SheetView.DocumentModels();
    dm = fpSpread1.ActiveSheet.Models;
    fpSpread1.ActiveSheet.ColumnHeader.RowCount = 4;
    dm.ColumnHeaderSpan.Add(0, 0, 2, 2);
    Dim dm As New FarPoint.Win.Spread.SheetView.DocumentModels()
    dm = FpSpread1.ActiveSheet.Models
    FpSpread1.ActiveSheet.ColumnHeader.RowCount = 4
    dm.ColumnHeaderSpan.Add(0, 0, 2, 2)
    See Also