PowerTools SPREAD for Windows Forms 8.0J
NoteIndicatorColor フィールド


シートスタイルのセルノートインジケータ色の設定を表します。
構文
'Declaration
 
Public Shared ReadOnly NoteIndicatorColor As SheetStyleProperty
'使用法
 
Dim value As SheetStyleProperty
 
value = SheetStyleProperty.NoteIndicatorColor
public static readonly SheetStyleProperty NoteIndicatorColor
次のサンプルコードは、スタイル情報のメモの色を設定します。
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.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.NoteIndicatorColor);
     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
          b = info.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.NoteIndicatorColor)
     End If
End Sub
参照

SheetStyleProperty クラス
SheetStyleProperty メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.