Spread Windows Forms 7.0 Product Documentation
NoteIndicatorPosition Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Cell Class : NoteIndicatorPosition Property


Glossary Item Box

Gets or sets the cell note indicator position for the cell.

Syntax

Visual Basic (Declaration) 
Public Property NoteIndicatorPosition As NoteIndicatorPosition
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim value As NoteIndicatorPosition
 
instance.NoteIndicatorPosition = value
 
value = instance.NoteIndicatorPosition
C# 
public NoteIndicatorPosition NoteIndicatorPosition {get; set;}

Example

This example sets the NoteIndicatorPostion property.
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.