PowerTools SPREAD for Windows Forms 10.0J
IsNoteIndicatorColorSet メソッド


セルのセルノートインジケータの色が設定されているかどうかを取得します。
構文
public virtual bool IsNoteIndicatorColorSet()
'Declaration
 
Public Overridable Function IsNoteIndicatorColorSet() As Boolean
 
'使用法
 
Dim instance As StyleInfo
Dim value As Boolean
 
value = instance.IsNoteIndicatorColorSet()

戻り値の型

Boolean:プロパティが設定されている場合は True、それ以外の場合は False
次のサンプルコードは、スタイル情報のメモの色を設定します。
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
参照

StyleInfo クラス
StyleInfo メンバ

 

 


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