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


Glossary Item Box

Obsoleted. Use NoteMoved instead. Occurs when a sticky note is moved on the sheet.

Syntax

Visual Basic (Declaration) 
Public Event StickyNoteMoved As StickyNoteEventHandler
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim handler As StickyNoteEventHandler
 
AddHandler instance.StickyNoteMoved, handler
C# 
public event StickyNoteEventHandler StickyNoteMoved

Event Data

The event handler receives an argument of type StickyNoteEventArgs containing data related to this event. The following StickyNoteEventArgs properties provide information specific to this event.

PropertyDescription
StickyNoteStyleInfo Gets the style information of the sticky note.

Example

This example shows the use of the StickyNoteMoved event handling.
C#Copy Code
private void FpSpread1_Sheet1_StickyNoteMoved(object sender, FarPoint.Win.Spread.StickyNoteEventArgs e)
{
        e.StickyNoteStyleInfo.BackColor = Color.Blue;
}
Visual BasicCopy Code
Private Sub FpSpread1_Sheet1_StickyNoteMoved(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.StickyNoteEventArgs) Handles FpSpread1_Sheet1.StickyNoteMoved
        e.StickyNoteStyleInfo.BackColor = Color.Blue
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.