'Declaration
Public Function GetRowErrorText( _
ByVal As Integer _
) As String
'使用法
Dim instance As SheetView
Dim rowIndex As Integer
Dim value As String
value = instance.GetRowErrorText(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())