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


Glossary Item Box

Gets or sets the number of non-scrolling columns on the leading edge of this sheet.

Syntax

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

Property Value

Integer number of frozen columns

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException Specified value is out of range; must be greater than or equal to zero

Remarks

This property freezes the first m columns between the headers and the first scrollable viewport similar to how the frozen trailing property (FrozenTrailingColumnCount) freezes the last n columns between the last scrollable viewport and the scroll bars.

Example

This example sets the number of columns that cannot be scrolled to ten.
C#Copy Code
fpSpread1.ActiveSheet.FrozenColumnCount = 10;
fpSpread1.ActiveSheet.FrozenRowCount = 10;
Visual BasicCopy Code
FpSpread1.ActiveSheet.FrozenColumnCount = 10
FpSpread1.ActiveSheet.FrozenRowCount = 10

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.