Spread Windows Forms 11.0 Product Documentation
SetNoteBounds Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetNoteBounds Method
Row index of cell with note
Column index of cell with note
X-coordinate of beginning of note
Y-coordinate of beginning of note
Number of pixels in width of note
Number of pixels in height of note
Sets the location and dimensions for a cell note when the style sets the note to always be shown.
Syntax
'Declaration
 
Public Sub SetNoteBounds( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim x As Integer
Dim y As Integer
Dim width As Integer
Dim height As Integer
 
instance.SetNoteBounds(row, column, x, y, width, height)
public void SetNoteBounds( 
   int row,
   int column,
   int x,
   int y,
   int width,
   int height
)

Parameters

row
Row index of cell with note
column
Column index of cell with note
x
X-coordinate of beginning of note
y
Y-coordinate of beginning of note
width
Number of pixels in width of note
height
Number of pixels in height of note
Example
This example sets the location of the sticky note.
fpSpread1.ActiveSheet.SetNote(0, 0, "Head of Development");
fpSpread1.ActiveSheet.Cells(0, 0).NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote;
fpSpread1.ActiveSheet.SetNoteBounds(0, 0, 80, 80, 80, 80);
FpSpread1.ActiveSheet.SetNote(0, 0, "Head of Development")
FpSpread1.ActiveSheet.Cells(0, 0).NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote
FpSpread1.ActiveSheet.SetNoteBounds(0, 0, 80, 80, 80, 80)
See Also

Reference

SheetView Class
SheetView Members
SetNote Method
Note Property

User-Task Documentation

Adding a Note to a Cell