Spread Windows Forms 12.0 Product Documentation
ResetRowNumberPolicy Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ScrollingContentInfo Class : ResetRowNumberPolicy Method
Resets the RowNumberPolicy property to its default value.
Syntax
'Declaration
 
Public Sub ResetRowNumberPolicy() 
'Usage
 
Dim instance As ScrollingContentInfo
 
instance.ResetRowNumberPolicy()
public void ResetRowNumberPolicy()
Example
This example uses the ResetRowNumberPolicy method.
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()
See Also

Reference

ScrollingContentInfo Class
ScrollingContentInfo Members