Spread Windows Forms 10.0 Product Documentation
GetNoteBounds Method
Example 


Gets the rectangle for the cell note for the specified cell if its NoteStyle is StickyNote.
Overload List
OverloadDescription
GetNoteBoundsGets the rectangle for the cell note for the specified cell if its NoteStyle is StickyNote.  
Example
This example returns the bounds of the note.
fpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development");
fpSpread1.ActiveSheet.Cells(2, 0).NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote;
Rectangle r = fpSpread1.ActiveSheet.GetNoteBounds(2, 0);
MessageBox.Show(r.Height.ToString());
FpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development")
FpSpread1.ActiveSheet.Cells(2, 0).NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote
Dim r As Rectangle = FpSpread1.ActiveSheet.GetNoteBounds(2, 0)
MessageBox.Show(r.Height.ToString())
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.