MESCIUS SPREAD for Windows Forms 17.0J
Icon プロパティ (MessageBoxNotify)

Iconを取得または設定します。
構文
'Declaration
 
Public Property Icon As MessageBoxIcon
public MessageBoxIcon Icon {get; set;}

プロパティ値

メッセージアイコン。デフォルト値はSystem.Windows.Forms.MessageBoxIcon.Noneです。
例外
例外説明
System.ComponentModel.InvalidEnumArgumentException指定された値が有効なSystem.Windows.Forms.MessageBoxIconではありません。
次のサンプルコードは、無効な値に対してメッセージボックスを表示します。
//Type one of the candidate items in cell 1,1 to see the error notification
FarPoint.Win.Spread.MessageBoxNotify cnotify = new FarPoint.Win.Spread.MessageBoxNotify();
cnotify.Caption = "Error";
cnotify.Message = "Invalid";
cnotify.Icon = MessageBoxIcon.Question;
FarPoint.Win.Spread.ExcludeListValidator excludelist = new FarPoint.Win.Spread.ExcludeListValidator();
excludelist.Candidates = new string[] { "Bird", "Deer", "Squirrel", "Lizard" };
excludelist.Actions.Add(cnotify);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), excludelist);
'Type one of the candidate items in cell 1,1 to see the error notification
Dim cnotify As New FarPoint.Win.Spread.MessageBoxNotify()
cnotify.Caption = "Error"
cnotify.Message = "Invalid"
cnotify.Icon = MessageBoxIcon.Question
Dim excludelist As New FarPoint.Win.Spread.ExcludeListValidator()
excludelist.Candidates = New String() {"Bird", "Deer", "Squirrel", "Lizard"}
excludelist.Actions.Add(cnotify)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), excludelist)
参照

MessageBoxNotify クラス
MessageBoxNotify メンバ

 

 


© MESCIUS inc. All rights reserved.