Spread for ASP.NET 7.0 Product Documentation
ColumnHeaderSpanModel Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ColumnHeaderSpanModel Property


Glossary Item Box

Gets or sets the spanned cells for the column header.

Syntax

Visual Basic (Declaration) 
Public Property ColumnHeaderSpanModel As ISheetSpanModel
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As ISheetSpanModel
 
instance.ColumnHeaderSpanModel = value
 
value = instance.ColumnHeaderSpanModel
C# 
public ISheetSpanModel ColumnHeaderSpanModel {get; set;}

Property Value

ISheetSpanModel object containing the spanned cells

Remarks

This property is available at run time only.

To get or set the object for the row header, use the RowHeaderSpanModel property.

Example

This example sets the sheet to have three rows of column headers, adds a span to the rows and sets the size of the first row of headers. A border is also placed around the spanned headers.
C#Copy Code
FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo();
info.Border = new FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Teal, 2);
sv.ColumnHeader.RowCount = 3;
sv.ColumnHeaderSpanModel.Add(0, 0, 2, 2);
sv.ColumnHeaderStyleModel.SetDirectInfo(0, 0, info);
sv.ColumnHeaderRowAxisModel.SetSize(0, 50);
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
Dim info As New FarPoint.Web.Spread.StyleInfo()
info.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Teal, 2)
sv = FpSpread1.ActiveSheetView
sv.ColumnHeader.RowCount = 3
sv.ColumnHeaderSpanModel.Add(0, 0, 2, 2)
sv.ColumnHeaderStyleModel.SetDirectInfo(0, 0, info)
sv.ColumnHeaderRowAxisModel.SetSize(0, 50)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.