Spread Windows Forms 7.0 Product Documentation
NoteStyle Field
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetStyleProperty Class : NoteStyle Field


Glossary Item Box

Represents the note style setting of the sheet style.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly NoteStyle As SheetStyleProperty
Visual Basic (Usage)Copy Code
Dim value As SheetStyleProperty
 
value = SheetStyleProperty.NoteStyle
C# 
public static readonly SheetStyleProperty NoteStyle

Example

This example sets the note style for the sheet.
C#Copy Code
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.CanFocus = false; 
si.NoteStyle = NoteStyle.StickyNote; 
si.TabStop = false; 
si.VisualStyles = FarPoint.Win.VisualStyles.On; 
fpSpread1.ActiveSheet.DefaultStyle = si; 
bool b = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.NoteStyle); 
if (b == true) { 
     MessageBox.Show("The note style is " + si.NoteStyle.ToString()); 
}
Visual BasicCopy Code
Dim si As New FarPoint.Win.Spread.StyleInfo
si.CanFocus = False
si.NoteStyle = NoteStyle.StickyNote
si.TabStop = False
si.VisualStyles = FarPoint.Win.VisualStyles.On
FpSpread1.ActiveSheet.DefaultStyle = si
Dim b As Boolean = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.CanFocus)
If b = True Then
    MessageBox.Show("The note style is " & si.NoteStyle.ToString())
End If

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.