Gets or sets the scaling factor for displaying this sheet.
'Declaration
<System.ComponentModel.DefaultValueAttribute()>
Public Property ZoomFactor As System.Single
'Usage
Dim instance As Worksheet
Dim value As System.Single
instance.ZoomFactor = value
value = instance.ZoomFactor
[System.ComponentModel.DefaultValue()]
public System.float ZoomFactor {get; set;}
Property Value
The scaling factor for displaying this sheet.
This example sets the ZoomFactor property.
gcSpreadSheet1.CanUserZoom = true;
gcSpreadSheet1.Invalidate();
private void button1_Click(object sender, RoutedEventArgs e)
{
gcSpreadSheet1.Sheets[0].ZoomFactor = 2;
gcSpreadSheet1.Invalidate();
}
GcSpreadSheet1.CanUserZoom = True
GcSpreadSheet1.Invalidate()
Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
GcSpreadSheet1.Sheets(0).ZoomFactor = 2
GcSpreadSheet1.Invalidate()
End Sub
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6