Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / FrozenColumnCount Property
Example


In This Topic
    FrozenColumnCount Property
    In This Topic
    Gets or sets the number of non-scrolling columns on the leading edge of this sheet.
    Syntax
    'Declaration
     
    Public Property FrozenColumnCount As Integer
    'Usage
     
    Dim instance As SheetView
    Dim value As Integer
     
    instance.FrozenColumnCount = value
     
    value = instance.FrozenColumnCount
    public int FrozenColumnCount {get; set;}

    Property Value

    Integer number of frozen columns
    Exceptions
    ExceptionDescription
    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.
    fpSpread1.ActiveSheet.FrozenColumnCount = 10;
    fpSpread1.ActiveSheet.FrozenRowCount = 10;
    FpSpread1.ActiveSheet.FrozenColumnCount = 10
    FpSpread1.ActiveSheet.FrozenRowCount = 10
    See Also