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


Glossary Item Box

Gets or sets the default border for cells in this column.

Syntax

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

Property Value

Border object that contains the border for the cells in this column

Remarks

The setting for this property can be overridden if a named style is assigned to the cell using the StyleName property, and that named style sets a border.

Example

This example creates a spreadsheet with 10 columns and 20 rows. A Column object and a Border object are then created. The Column object is assigned to the second column of the spreadsheet. The Border objects design is assigned to the Border property of the Column object, such that all the cells in the second column have a red, grooved border around them.
C#Copy Code
FpSpread1.ActiveSheetView.ColumnCount=10;
FpSpread1.ActiveSheetView.PageSize=20;
FpSpread1.ActiveSheetView.RowCount=20;
FarPoint.Web.Spread.Column mycol;
FarPoint.Web.Spread.Border bord=new FarPoint.Web.Spread.Border(BorderStyle.Groove,Color.Red,3);
mycol=FpSpread1.ActiveSheetView.Columns[1];
mycol.Border=bord;
Visual BasicCopy Code
FpSpread1.ActiveSheetView.ColumnCount=10
FpSpread1.ActiveSheetView.PageSize=20
FpSpread1.ActiveSheetView.RowCount=20
Dim mycol As FarPoint.Web.Spread.Column
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Groove,Color.Red,3)
mycol=FpSpread1.ActiveSheetView.Columns(1)
mycol.Border=bord

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.