GrapeCity SPREAD for Windows Forms 12.0J
ToolTipIcon プロパティ


ツールチップに表示されるSystem.Windows.Forms.ToolTipIconを取得または設定します。
構文
'Declaration
 
Public Property ToolTipIcon As ToolTipIcon
'使用法
 
Dim instance As TipNotify
Dim value As ToolTipIcon
 
instance.ToolTipIcon = value
 
value = instance.ToolTipIcon
public ToolTipIcon ToolTipIcon {get; set;}

プロパティ値

System.Windows.Forms.ToolTipIcon 値。 デフォルト値は System.Windows.Forms.ToolTipIcon.None>です。
例外
例外説明
System.ComponentModel.InvalidEnumArgumentException指定された値がSystem.Windows.Forms.ToolTipIconではありません。
次のサンプルコードは、値比較バリデーターを使用します。
//Type a value in cell 1,1
FarPoint.Win.Spread.TipNotify tnote = new FarPoint.Win.Spread.TipNotify();
tnote.ToolTipText = "Greater than 5";
tnote.ToolTipTitle = "Error";
tnote.ToolTipIcon = ToolTipIcon.Error;
FarPoint.Win.Spread.CompareValueValidator compare = new FarPoint.Win.Spread.CompareValueValidator();
compare.ComparedOperator = FarPoint.Win.Spread.ValidateComparisonOperator.GreaterThan;
compare.ComparedValue = 5;
compare.Actions.Add(tnote);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), compare);
'Type a value in cell 1,1
Dim tnote As New FarPoint.Win.Spread.TipNotify()
tnote.ToolTipText = "Greater than 5"
tnote.ToolTipTitle = "Error"
tnote.ToolTipIcon = ToolTipIcon.Error
Dim compare As New FarPoint.Win.Spread.CompareValueValidator()
compare.ComparedOperator = FarPoint.Win.Spread.ValidateComparisonOperator.GreaterThan
compare.ComparedValue = 5
compare.Actions.Add(tnote)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), compare)
参照

TipNotify クラス
TipNotify メンバ

 

 


Copyright © 2004 GrapeCity inc.