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


Glossary Item Box

Gets or sets the selection policy.

Syntax

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

Property Value

SelectionPolicy setting that determines how the user can make selections

Example

This example shows the setting of selection policy.
C#Copy Code
FpSpread1.Sheets.Count = 3;
FpSpread1.Sheets[0].SelectionPolicy = FarPoint.Web.Spread.Model.SelectionPolicy.MultiRange;
FpSpread1.Sheets[1].SelectionPolicy = FarPoint.Web.Spread.Model.SelectionPolicy.Range;
FpSpread1.Sheets[2].SelectionPolicy = FarPoint.Web.Spread.Model.SelectionPolicy.Single;
Visual BasicCopy Code
FpSpread1.Sheets.Count = 3
FpSpread1.Sheets(0).SelectionPolicy = FarPoint.Web.Spread.Model.SelectionPolicy.MultiRange
FpSpread1.Sheets(1).SelectionPolicy = FarPoint.Web.Spread.Model.SelectionPolicy.Range
FpSpread1.Sheets(2).SelectionPolicy = FarPoint.Web.Spread.Model.SelectionPolicy.Single

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.