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


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

Glossary Item Box

Sets the location and dimensions for a cell note when the style sets the note to always be shown.

Syntax

Visual Basic (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 _
) 
Visual Basic (Usage)Copy Code
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)
C# 
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.
C#Copy Code
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);
Visual BasicCopy Code
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)

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.