Spread Windows Forms 12.0 Product Documentation
IsNoteIndicatorColorSet Method (StyleInfo)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > StyleInfo Class : IsNoteIndicatorColorSet Method
Gets whether the cell note indicator color of the cell is set.
Syntax
'Declaration
 
Public Overridable Function IsNoteIndicatorColorSet() As Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As Boolean
 
value = instance.IsNoteIndicatorColorSet()
public virtual bool IsNoteIndicatorColorSet()

Return Value

Boolean: true if the property is set; false otherwise
Example
This example sets the note color for the style information.
FarPoint.Win.Spread.StyleInfo info = new FarPoint.Win.Spread.StyleInfo();

info.NoteIndicatorColor = Color.DarkBlue;
fpSpread1.ActiveSheet.DefaultStyle = info;
fpSpread1.ActiveSheet.Cells[0, 0].Note = "VP - Marketing";

private void button1Click(object sender, System.EventArgs e)
{
     bool b;
     b = info.IsNoteIndicatorColorSet();
     if (b == true)
     {
          info.ResetNoteIndicatorColor()
     }
}
Dim info As New FarPoint.Win.Spread.StyleInfo

info.NoteIndicatorColor = Color.DarkBlue
fpSpread1.ActiveSheet.DefaultStyle = info
fpSpread1.ActiveSheet.Cells(0, 0).Note = "VP - Marketing"

Private Sub Button1Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
     Dim b As Boolean
     b = info.IsNoteIndicatorColorSet()
     If b = True Then
          info.ResetNoteIndicatorColor()
     End If
End Sub
See Also

Reference

StyleInfo Class
StyleInfo Members