Spread Windows Forms 9.0 Product Documentation
SetOutlineBorder Method
Example 


Cell range around which to put outline border
Border to place around the outside of the range of cells
Sets border outlines for a range of cells.
Syntax
'Declaration
 
Public Overridable Sub SetOutlineBorder( _
   ByVal cr As CellRange, _
   ByVal border As IBorder _
) 
'Usage
 
Dim instance As SheetView
Dim cr As CellRange
Dim border As IBorder
 
instance.SetOutlineBorder(cr, border)
public virtual void SetOutlineBorder( 
   CellRange cr,
   IBorder border
)

Parameters

cr
Cell range around which to put outline border
border
Border to place around the outside of the range of cells
Remarks
This method sets a border around the outside (or outline) of a range of cells. To apply grid line type borders to the cells inside a range, refer to the SetInsideBorder method.
Example
This example sets an outline around the specified cell range.
FarPoint.Win.Spread.Model.CellRange cr = new FarPoint.Win.Spread.Model.CellRange(0, 0, 2, 2);
FarPoint.Win.LineBorder b = new FarPoint.Win.LineBorder(Color.Red);
fpSpread1.ActiveSheet.SetOutlineBorder(cr, b);
Dim cr As New FarPoint.Win.Spread.Model.CellRange(0, 0, 2, 2)
Dim b As New FarPoint.Win.LineBorder(Color.Red)
FpSpread1.ActiveSheet.SetOutlineBorder(cr, b)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
SetInsideBorder Method

User-Task Documentation

Customizing Cell Borders

 

 


Copyright © GrapeCity, inc. All rights reserved.