Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / AllowUserToTouchZoomChanged Event
Example


In This Topic
    AllowUserToTouchZoomChanged Event
    In This Topic
    Occurs when the AllowUserToZoom property has changed.
    Syntax
    'Declaration
     
    Public Event AllowUserToTouchZoomChanged As EventHandler
    'Usage
     
    Dim instance As FpSpread
    Dim handler As EventHandler
     
    AddHandler instance.AllowUserToTouchZoomChanged, handler
    public event EventHandler AllowUserToTouchZoomChanged
    Example
    This example uses the AllowUserToTouchZoomChanged event.
    private void button1_Click(object sender, EventArgs e)
            {
    
                fpSpread1.AllowUserToTouchZoom = false;
            }
    
    
            private void fpSpread1_AllowUserToTouchZoomChanged(object sender, EventArgs e)
            {
                listBox1.Items.Add("changed");
            }
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            fpSpread1.AllowUserToTouchZoom = False
        End Sub
    
        Private Sub fpSpread1_AllowUserToTouchZoomChanged(sender As Object, e As EventArgs) Handles fpSpread1.AllowUserToTouchZoomChanged
            ListBox1.Items.Add("changed")
        End Sub
    See Also