Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ScrollingContentRowNumberPolicy Enumeration
Example Example


In This Topic
    ScrollingContentRowNumberPolicy Enumeration
    In This Topic
    Specifies how to display the current row number in scrolling content.
    Syntax
    'Declaration
     
    Public Enum ScrollingContentRowNumberPolicy 
       Inherits System.Enum
    'Usage
     
    Dim instance As ScrollingContentRowNumberPolicy
    public enum ScrollingContentRowNumberPolicy : System.Enum 
    Members
    MemberDescription
    First Display the current row number at the start of the scrolling content.
    Last Display the current row number at the end of the scrolling content.
    Never Doesn't display the current row number in the scrolling content.
    Example
    This example uses the ScrollingContentRowNumberPolicy enumeration.
    fpSpread1.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both;
    FarPoint.Win.Spread.ScrollingContentInfo scrollingContentInfo = new FarPoint.Win.Spread.ScrollingContentInfo();
    scrollingContentInfo.ColumnIndices = "0,2";
    scrollingContentInfo.MaxHeight = 100;
    scrollingContentInfo.RowNumberPolicy = FarPoint.Win.Spread.ScrollingContentRowNumberPolicy.Last;
    fpSpread1.Sheets[0].ScrollingContentInfo = scrollingContentInfo;
    
    scrollingContentInfo.ResetMaxHeight();
    scrollingContentInfo.ResetRowNumberPolicy();
    fpSpread1.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both
    Dim scrollingContentInfo As New FarPoint.Win.Spread.ScrollingContentInfo()
    scrollingContentInfo.ColumnIndices = "0,2"
    scrollingContentInfo.MaxHeight = 100
    scrollingContentInfo.RowNumberPolicy = FarPoint.Win.Spread.ScrollingContentRowNumberPolicy.Last
    fpSpread1.Sheets(0).ScrollingContentInfo = scrollingContentInfo
    
    scrollingContentInfo.ResetMaxHeight()
    scrollingContentInfo.ResetRowNumberPolicy()
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.ScrollingContentRowNumberPolicy

    See Also