GrapeCity.Xaml.SpreadSheet.UI
CanUserZoom Property (GcSpreadSheet)
Example 


GrapeCity.Xaml.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
 
<DefaultValueAttribute()>
<CategoryAttribute()>
Public Property CanUserZoom As Boolean
'Usage
 
Dim instance As GcSpreadSheet
Dim value As Boolean
 
instance.CanUserZoom = value
 
value = instance.CanUserZoom
[DefaultValue()]
[Category()]
public bool CanUserZoom {get; set;}
Example
This example uses the CanUserZoom property.
gcSpreadSheet1.CanUserZoom = true; 

private void gcSpreadSheet1_UserZooming(object sender, GrapeCity.Xaml.SpreadSheet.UI.ZoomEventArgs e)
        {
         listBox1.Items.Add(e.NewZoomFactor.ToString());
         listBox1.Items.Add(e.OldZoomFactor.ToString());
        }
GcSpreadSheet1.CanUserZoom = True

 Private Sub gcSpreadSheet1_UserZooming(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.ZoomEventArgs) Handles gcSpreadSheet1.UserZooming
        ListBox1.Items.Add(e.NewZoomFactor.ToString())
        ListBox1.Items.Add(e.OldZoomFactor.ToString())
    End Sub
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members