Spread Windows Forms 6.0 Product Documentation
ShapeDeactivated Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ShapeDeactivated Event


Glossary Item Box

Occurs when the user deactivates the active shape object.

Syntax

Visual Basic (Declaration) 
Public Event ShapeDeactivated As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As EventHandler
 
AddHandler instance.ShapeDeactivated, handler
C# 
public event EventHandler ShapeDeactivated

Example

This example uses the ShapeDeactivated event.
C#Copy Code
private void Form1_Load(object sender, EventArgs e)
       {
       FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape expected = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape("A1:C3");
       expected.Name = "myShape1";
       fpSpread1.Sheets[0].AddShape(expected); 
       }
  
       private void fpSpread1_ShapeDeactivated(object sender, EventArgs e)
       {
        listBox1.Items.Add("ShapeDeactivated");
       }
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load        
        Dim expected As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape("A1:C3")
        expected.Name = "myShape1"
        FpSpread1.Sheets(0).AddShape(expected)    
  End Sub

    Private Sub FpSpread1_ShapeDeactivated(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.ShapeDeactivated
        ListBox1.Items.Add("ShapeDeactivated")
    End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.