GrapeCity SPREAD for Windows Forms 12.0J
GetRowErrorText メソッド (SheetView)


行インデックス
行エラーテキストを取得します。
構文
'Declaration
 
Public Function GetRowErrorText( _
   ByVal rowIndex As Integer _
) As String
'使用法
 
Dim instance As SheetView
Dim rowIndex As Integer
Dim value As String
 
value = instance.GetRowErrorText(rowIndex)
public string GetRowErrorText( 
   int rowIndex
)

パラメータ

rowIndex
行インデックス

戻り値の型

行のエラーテキスト(エラーテキストがない場合は string.Empty)。
次のサンプルコードは、GetRowErrorTextメソッドを使用します。
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.ShowRowErrors = true;
sv.Sheets[0].Rows[0].ErrorText = "RowError";
sv.Sheets[0].Rows[0].Locked = true;

string text;
text = fpSpread1.ActiveSheet.GetRowErrorText(0);
listBox1.Items.Add(text.ToString());
Dim sv As FarPoint.Win.Spread.SpreadView
sv = FpSpread1.GetRootWorkbook()
sv.ShowRowErrors = True
sv.Sheets(0).Rows(0).ErrorText = "RowError"
sv.Sheets(0).Rows(0).Locked = True

Dim text As String
text = FpSpread1.ActiveSheet.GetRowErrorText(0)
ListBox1.Items.Add(Text.ToString())
参照

SheetView クラス
SheetView メンバ

 

 


Copyright © 2004 GrapeCity inc.