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


再生するシステム音を示す値を取得または設定します。
構文
'Declaration
 
Public Property SoundType As SystemSoundType
'使用法
 
Dim instance As SoundNotify
Dim value As SystemSoundType
 
instance.SoundType = value
 
value = instance.SoundType
public SystemSoundType SoundType {get; set;}

プロパティ値

SystemSoundType 値。 デフォルト値は SystemSoundType.Asterisk>です。
次のサンプルコードは、値が無効な場合に音を鳴らします。
//Type a value in cell 1,1
FarPoint.Win.Spread.SoundNotify sound = new FarPoint.Win.Spread.SoundNotify();
sound.SoundType = FarPoint.Win.Spread.SystemSoundType.Exclamation;
FarPoint.Win.Spread.CompareStringValidator svalid = new FarPoint.Win.Spread.CompareStringValidator();
svalid.ComparedOperator = FarPoint.Win.Spread.CompareStringValidatorOperator.Contains;
svalid.ComparedString = "Test";
svalid.Actions.Add(sound);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), svalid);
'Type a value in cell 1,1
Dim sound As New FarPoint.Win.Spread.SoundNotify()
sound.SoundType = FarPoint.Win.Spread.SystemSoundType.Exclamation
Dim svalid As New FarPoint.Win.Spread.CompareStringValidator()
svalid.ComparedOperator = FarPoint.Win.Spread.CompareStringValidatorOperator.Contains
svalid.ComparedString = "Test"
svalid.Actions.Add(sound)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), svalid)
参照

SoundNotify クラス
SoundNotify メンバ

 

 


Copyright © 2004 GrapeCity inc.