GrapeCity SPREAD for Windows Forms 12.0J
Add(Int32,Int32,Int32,Int32,DataValidationType,DataValidationErrorStyle,DataValidationOperator,String,String) メソッド


セル範囲の一番上の行のインデックスを示す整数値。
セル範囲の左端の列のインデックスを示す整数値。
セル範囲の一番下の行のインデックスを示す整数値。
セル範囲の右端の列のインデックスを示す整数値。
追加するデータ検証のタイプを示すDataValidationType値。
エラーメッセージに使用するエラースタイルを示すDataValidationErrorStyle値。
データ検証の演算子を示すDataValidationOperator値。
最初のデータ検証値(数式またはリスト)を示す文字列値。
<see cref="F:GrapeCity.Spreadsheet.DataValidationOperator.Between" />または<see cref="F:GrapeCity.Spreadsheet.DataValidationOperator.NotBetween" />に対する2番目のデータ検証値を示す文字列値。
指定した範囲にデータ検証を追加します。
構文
'Declaration
 
Public Overloads Function Add( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal row2 As Integer, _
   ByVal column2 As Integer, _
   ByVal type As DataValidationType, _
   ByVal errorStyle As DataValidationErrorStyle, _
   ByVal operator As DataValidationOperator, _
   ByVal formula1 As String, _
   Optional ByVal formula2 As String _
) As DataValidation
'使用法
 
Dim instance As DataValidations
Dim row As Integer
Dim column As Integer
Dim row2 As Integer
Dim column2 As Integer
Dim type As DataValidationType
Dim errorStyle As DataValidationErrorStyle
Dim operator As DataValidationOperator
Dim formula1 As String
Dim formula2 As String
Dim value As DataValidation
 
value = instance.Add(row, column, row2, column2, type, errorStyle, operator, formula1, formula2)

パラメータ

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

戻り値の型

作成されたデータ検証を表すDataValidationインスタンス。データが無効な場合はnull
解説
指定した範囲にある既存のすべてのデータ検証が削除されます。
参照

DataValidations クラス
DataValidations メンバ
オーバーロード一覧

 

 


Copyright © 2004 GrapeCity inc.