Spread Windows Forms 7.0 Product Documentation
MinZoomFactor Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : MinZoomFactor Property


Glossary Item Box

Gets or sets a value that indicates the minimum zoom factor for the active SheetView.

Syntax

Visual Basic (Declaration) 
Public Property MinZoomFactor As Single
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As Single
 
instance.MinZoomFactor = value
 
value = instance.MinZoomFactor
C# 
public float MinZoomFactor {get; set;}

Property Value

A System.Single value that represents the active SheetView minimum zoom factor. The default is 0.1f.

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is greater than 4 or less than 0.1.

Example

This example sets the MinZoomFactor property.
C#Copy Code
fpSpread1.AllowUserToTouchZoom = true;
fpSpread1.MinZoomFactor = .1F;
fpSpread1.TouchZoomSnapDistance = 1;
fpSpread1.TouchZoomSnapPoints.Add(1f);
fpSpread1.TouchZoomSnapPoints.Add(2f);
VB.NETCopy Code
FpSpread1.AllowUserToTouchZoom = True
FpSpread1.MinZoomFactor = .1F
FpSpread1.TouchZoomSnapDistance = 1
FpSpread1.TouchZoomSnapPoints.Add(1f)
FpSpread1.TouchZoomSnapPoints.Add(2f)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.