Spread Silverlight Documentation
CanUserZoom Property (GcSpreadSheet)
Example 


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.DefaultValueAttribute()>
<System.ComponentModel.CategoryAttribute("Spread Workbook")>
Public Property CanUserZoom As System.Boolean
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Boolean
 
instance.CanUserZoom = value
 
value = instance.CanUserZoom
[System.ComponentModel.DefaultValue()]
[System.ComponentModel.Category("Spread Workbook")]
public System.bool CanUserZoom {get; set;}
Example
This example sets 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
Requirements

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

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.