Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ScaleRule Class / Interval Property

In This Topic
    Interval Property (ScaleRule)
    In This Topic
    Gets or sets the amount by which to decrement the zoom factor between scale tests.
    Public Property Interval As Single
    Dim instance As ScaleRule
    Dim value As Single
    instance.Interval = value
    value = instance.Interval
    public float Interval {get; set;}
    This example creates a scale rule for optimized printing.
    FarPoint.Web.Spread.SmartPrintRulesCollection rules = new FarPoint.Web.Spread.SmartPrintRulesCollection();
    FarPoint.Web.Spread.ScaleRule sr = new FarPoint.Web.Spread.ScaleRule();
    FarPoint.Web.Spread.PrintInfo pi = new FarPoint.Web.Spread.PrintInfo();
    sr.EndFactor = 4;
    sr.Interval = 1;
    sr.ResetOption = FarPoint.Web.Spread.ResetOption.None;
    sr.StartFactor = 1;
    pi.SmartPrintRules = rules;
    pi.UseSmartPrint = true;
    FpSpread1.ActiveSheetView.PrintInfo = pi;
    Dim rules As New FarPoint.Web.Spread.SmartPrintRulesCollection
    Dim sr As New FarPoint.Web.Spread.ScaleRule
    Dim pi As New FarPoint.Web.Spread.PrintInfo
    sr.EndFactor = 4
    sr.Interval = 1
    sr.ResetOption = FarPoint.Web.Spread.ResetOption.None
    sr.StartFactor = 1
    pi.SmartPrintRules = rules
    pi.UseSmartPrint = True
    FpSpread1.ActiveSheetView.PrintInfo = pi
    See Also