Spread for ASP.NET 11 Product Documentation
ColumnHeaderRowAxisModel Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ColumnHeaderRowAxisModel Property
Gets or sets the row information for the column header.
Syntax
'Declaration
 
Public Property ColumnHeaderRowAxisModel As ISheetAxisModel
'Usage
 
Dim instance As SheetView
Dim value As ISheetAxisModel
 
instance.ColumnHeaderRowAxisModel = value
 
value = instance.ColumnHeaderRowAxisModel
public ISheetAxisModel ColumnHeaderRowAxisModel {get; set;}

Property Value

ISheetAxisModel object containing the row information
Remarks

This property is available at run time only.

To get or set the object for the row header, use the RowHeaderColumnAxisModel 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.
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);
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)
See Also

Reference

SheetView Class
SheetView Members
RowHeaderColumnAxisModel Property