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


row
Row index of cell
column
Column index of cell

Glossary Item Box

Gets the style information for the cell notes on this sheet that stay visible.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetStickyNoteStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As StickyNoteStyleInfo
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As StickyNoteStyleInfo
 
value = instance.GetStickyNoteStyleInfo(row, column)
C# 
public virtual StickyNoteStyleInfo GetStickyNoteStyleInfo( 
   int row,
   int column
)

Parameters

row
Row index of cell
column
Column index of cell

Return Value

StickyNoteStyleInfo object that contains the style information for the sticky note

Example

This example sets the style for the sticky note.This example uses the GetNoteStyleInfo method.
C#Copy Code
fpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development");
fpSpread1.ActiveSheet.Cells[2, 0].NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote;
FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo nsinfo = new FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo();
nsinfo = fpSpread1.ActiveSheet.GetStickyNoteStyleInfo(2, 0);
nsinfo.BackColor = Color.Bisque;
nsinfo.Font = new Font("Tahoma", 24);
nsinfo.ForeColor = Color.Cyan;
nsinfo.Width = 320;
nsinfo.ShapeOutlineColor = Color.Cyan;
nsinfo.ShapeOutlineThickness = 1;
nsinfo.ShadowOffsetX = 3;
nsinfo.ShadowOffsetY = 3;
fpSpread1.ActiveSheet.SetStickyNoteStyleInfo(2, 0, nsinfo);
Visual BasicCopy Code
FpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development")
FpSpread1.ActiveSheet.Cells(2, 0).NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote
Dim nsinfo As FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo = New FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo
nsinfo = FpSpread1.ActiveSheet.GetStickyNoteStyleInfo(2, 0)
nsinfo.BackColor = Color.Bisque
nsinfo.Font = New Font("Tahoma", 24)
nsinfo.ForeColor = Color.Cyan
nsinfo.Width = 320
nsinfo.ShapeOutlineColor = Color.Cyan
nsinfo.ShapeOutlineThickness = 1
nsinfo.ShadowOffsetX = 3
nsinfo.ShadowOffsetY = 3
FpSpread1.ActiveSheet.SetStickyNoteStyleInfo(2, 0, nsinfo)
C#Copy Code
fpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development");
FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo nsinfo = new FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo();
nsinfo = fpSpread1.ActiveSheet.GetStickyNoteStyleInfo(2, 0);
nsinfo.BackColor = Color.Bisque;
nsinfo.Font = new Font("Tahoma", 24);
nsinfo.ForeColor = Color.Cyan;
nsinfo.Width = 320;
nsinfo.ShapeOutlineColor = Color.Cyan;
nsinfo.ShapeOutlineThickness = 1;
nsinfo.ShadowOffsetX = 3;
nsinfo.ShadowOffsetY = 3;
nsinfo.MarginLeft = 5;
fpSpread1.ActiveSheet.SetStickyNoteStyleInfo(2, 0, nsinfo);
fpSpread1.Sheets[0].Cells[0, 0].NoteIndicatorPosition = FarPoint.Win.Spread.NoteIndicatorPosition.BottomLeft;
Visual BasicCopy Code
FpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development")
Dim nsinfo As FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo = New FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo()
nsinfo = FpSpread1.ActiveSheet.GetStickyNoteStyleInfo(2, 0)
nsinfo.BackColor = Color.Bisque
nsinfo.Font = New Font("Tahoma", 12)
nsinfo.ForeColor = Color.Cyan
nsinfo.Width = 250
nsinfo.ShapeOutlineColor = Color.Cyan
nsinfo.ShapeOutlineThickness = 1
nsinfo.ShadowOffsetX = 3
nsinfo.ShadowOffsetY = 3
nsinfo.MarginLeft = 5
FpSpread1.ActiveSheet.SetStickyNoteStyleInfo(2, 0, nsinfo)
FpSpread1.Sheets(0).Cells(2, 0).NoteIndicatorPosition = FarPoint.Win.Spread.NoteIndicatorPosition.BottomLeft

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.