Spread Windows Forms 6.0 Product Documentation
SetOutlineBorder Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetOutlineBorder Method


cr
Cell range around which to put outline border
border
Border to place around the outside of the range of cells

Glossary Item Box

Sets borders to the outline of a range of cells.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetOutlineBorder( _
   ByVal cr As CellRange, _
   ByVal border As IBorder _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim cr As CellRange
Dim border As IBorder
 
instance.SetOutlineBorder(cr, border)
C# 
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.
C#Copy Code
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);
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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