Spread for ASP.NET 8.0 Product Documentation
ResetOption Enumeration
Example Example 


Specifies whether the rules or a particular rule should reset before testing the next rule.
Syntax
'Declaration
 
Public Enum ResetOption 
   Inherits System.Enum
'Usage
 
Dim instance As ResetOption
public enum ResetOption : System.Enum 
Members
MemberDescription
All[2] Resets all the rules
Current[1] Resets the current rule
None[0] Never resets the rule(s)
Example
This example uses the ResetOption enumeration.
FarPoint.Web.Spread.SmartPrintRulesCollection rules = new FarPoint.Web.Spread.SmartPrintRulesCollection();
FarPoint.Web.Spread.PrintInfo pi = new FarPoint.Web.Spread.PrintInfo();
FarPoint.Web.Spread.LandscapeRule lr = new FarPoint.Web.Spread.LandscapeRule();
FarPoint.Web.Spread.ScaleRule sr = new FarPoint.Web.Spread.ScaleRule();
FarPoint.Web.Spread.BestFitColumnRule bfcr = new FarPoint.Web.Spread.BestFitColumnRule();
lr.ResetOption = FarPoint.Web.Spread.ResetOption.None;
sr.ResetOption = FarPoint.Web.Spread.ResetOption.None;
sr.StartFactor = 1;
sr.EndFactor = 2;
sr.Interval = 0.5f;
bfcr.ResetOption = FarPoint.Web.Spread.ResetOption.None;
rules.Add(lr);
rules.Add(sr);
rules.Add(bfcr);
pi.SmartPrintRules = rules;
FpSpread1.ActiveSheetView.PrintInfo = pi;
Dim rules As New FarPoint.Web.Spread.SmartPrintRulesCollection
Dim pi As New FarPoint.Web.Spread.PrintInfo
Dim lr As New FarPoint.Web.Spread.LandscapeRule
Dim sr As New FarPoint.Web.Spread.ScaleRule
Dim bfcr As New FarPoint.Web.Spread.BestFitColumnRule
lr.ResetOption = FarPoint.Web.Spread.ResetOption.None
sr.ResetOption = FarPoint.Web.Spread.ResetOption.None
sr.StartFactor = 1
sr.EndFactor = 2
sr.Interval = 0.5
bfcr.ResetOption = FarPoint.Web.Spread.ResetOption.None
rules.Add(lr)
rules.Add(sr)
rules.Add(bfcr)
pi.SmartPrintRules = rules
FpSpread1.ActiveSheetView.PrintInfo = pi
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.ResetOption

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

FarPoint.Web.Spread Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.