GrapeCity SPREAD for Windows Forms 12.0J
Modify メソッド (IValidation)


追加するデータ検証のタイプを示すDataValidationType値。
エラーメッセージに使用するエラースタイルを示すDataValidationErrorStyle値。
データ検証の演算子を示すDataValidationOperator値。
最初のデータ検証値(数式またはリスト)を示す文字列値。
<see cref="F:GrapeCity.Spreadsheet.DataValidationOperator.Between" />または<see cref="F:GrapeCity.Spreadsheet.DataValidationOperator.NotBetween" />に対する2番目のデータ検証値を示す文字列値。
指定したオプションを使用して、セル範囲に対する既存のデータ検証を変更します。
構文
'Declaration
 
Function Modify( _
   ByVal type As DataValidationType, _
   Optional ByVal errorStyle As DataValidationErrorStyle, _
   Optional ByVal operator As DataValidationOperator, _
   Optional ByVal formula1 As String, _
   Optional ByVal formula2 As String _
) As IValidation
'使用法
 
Dim instance As IValidation
Dim type As DataValidationType
Dim errorStyle As DataValidationErrorStyle
Dim operator As DataValidationOperator
Dim formula1 As String
Dim formula2 As String
Dim value As IValidation
 
value = instance.Modify(type, errorStyle, operator, formula1, formula2)

パラメータ

type
追加するデータ検証のタイプを示すDataValidationType値。
errorStyle
エラーメッセージに使用するエラースタイルを示すDataValidationErrorStyle値。
operator
データ検証の演算子を示すDataValidationOperator値。
formula1
最初のデータ検証値(数式またはリスト)を示す文字列値。
formula2
<see cref="F:GrapeCity.Spreadsheet.DataValidationOperator.Between" />または<see cref="F:GrapeCity.Spreadsheet.DataValidationOperator.NotBetween" />に対する2番目のデータ検証値を示す文字列値。

戻り値の型

変更されたデータ検証。データ検証を変更できない場合はnull
解説
formula1およびformula2プロパティはプリミティブ値にも使用されるため、式は「=」で始まる必要があります。
参照

IValidation インタフェース
IValidation メンバ

 

 


Copyright © 2004 GrapeCity inc.