Spread ASP.NET 6.0 Product Documentation
ColumnFooterStyleModel Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ColumnFooterStyleModel Property


Glossary Item Box

Gets or sets the cell types and other style settings for cells in the column footer.

Syntax

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

Example

This example sets the models for a column footer.
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.ColumnFooterVisible = true;
sv.ColumnFooterHeight = 100;
sv.ColumnFooter.Rows.Count = 3;
sv.ColumnFooterSpanModel.Add(0, 0, 2, 2);
sv.ColumnFooterStyleModel.SetDirectInfo(0, 0, info);
sv.ColumnFooterRowAxisModel.SetSize(0, 50);
FpSpread1.Sheets.Add(sv);
ListBox1.Items.Add(sv.ColumnFooterDataModel.ColumnCount.ToString());
ListBox1.Items.Add(sv.ColumnFooterDataModel.RowCount.ToString());
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView = FpSpread1.ActiveSheetView
Dim info As New FarPoint.Web.Spread.StyleInfo()
info.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Teal, 2)
sv.ColumnFooterVisible = True
sv.ColumnFooterHeight = 100
sv.ColumnFooter.Rows.Count = 3
sv.ColumnFooterSpanModel.Add(0, 0, 2, 2)
sv.ColumnFooterStyleModel.SetDirectInfo(0, 0, info)
sv.ColumnFooterRowAxisModel.SetSize(0, 50)
FpSpread1.Sheets.Add(sv)
ListBox1.Items.Add(sv.ColumnFooterDataModel.ColumnCount.ToString())
ListBox1.Items.Add(sv.ColumnFooterDataModel.RowCount.ToString())

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.