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


Glossary Item Box

Gets or sets the settings for the selection border.

Syntax

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

Property Value

Border object with border for selected cells

Remarks

This property is not used for client-side scripting.

The settings for the selection border are contained in the Border class, which includes properties to set the color, size, and style for the border's sides.

The selection border and selection text color are displayed only in down-level browsers.

Example

This example uses the SheetView object to change the appearance of a selected cell or cells, and selects a range of cells and returns if a cell in row 0 has been selected.
C#Copy Code
FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView;
FarPoint.Web.Spread.Border bord=new FarPoint.Web.Spread.Border(BorderStyle.Double,Color.Tomato,3);
bool bl;
sv.SelectionModel.SetSelection(0,0,3,3);
bl=sv.SelectionModel.IsAnyCellInRowSelected(0);
sv.SelectionBackColor=Color.Yellow;
sv.SelectionForeColor=Color.Red;
sv.SelectionBorder=bord;
sv.SetValue(0,0,"Test");
ListBox1.Items.Add(Convert.ToString(bl));
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Double,Color.Tomato,3)
Dim bl As Boolean
sv=FpSpread1.ActiveSheetView
sv.SelectionModel.SetSelection(0,0,3,3)
bl=sv.SelectionModel.IsAnyCellInRowSelected(0)
sv.SelectionBackColor=Color.Yellow
sv.SelectionForeColor=Color.Red
sv.SelectionBorder=bord
sv.SetValue(0,0,"Test")
ListBox1.Items.Add(bl)

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.