GrapeCity.Xaml.SpreadSheet.Data
ZoomFactor Property (Worksheet)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class : ZoomFactor Property
Gets or sets the scaling factor for displaying this sheet.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property ZoomFactor As Single
'Usage
 
Dim instance As Worksheet
Dim value As Single
 
instance.ZoomFactor = value
 
value = instance.ZoomFactor
[DefaultValue()]
public float ZoomFactor {get; set;}

Property Value

The scaling factor for displaying this sheet.
Exceptions
ExceptionDescription
Specified scaling amount is out of range; must be between 0.5 (50%) and 4.0 (400%).
Example
This example uses the ZoomFactor property.
private void Grid_Loaded_1(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.CanUserZoom = true;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.Sheets[0].ZoomFactor = 2;
        }
Private Sub MainPage_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded        
      GcSpreadSheet1.CanUserZoom = True      
    End Sub

    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)        
   GcSpreadSheet1.Sheets(0).ZoomFactor = 2
    End Sub
See Also

Reference

Worksheet Class
Worksheet Members