Spread WPF Documentation
CanUserZoom Property (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : CanUserZoom Property
Gets or sets whether the user can scale the display of the component using the Ctrl key and the mouse wheel.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Spread Workbook")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property CanUserZoom As System.Boolean
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Boolean
 
instance.CanUserZoom = value
 
value = instance.CanUserZoom
[System.ComponentModel.Category("Spread Workbook")]
[System.ComponentModel.DefaultValue()]
public System.bool CanUserZoom {get; set;}
Example
This example uses the CanUserZoom 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
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members