GrapeCity SPREAD for Windows Forms 11.0J
GetRowVisible メソッド


行インデックス
このシートの行が表示されるかどうかを判定します。
構文
'Declaration
 
Public Overridable Function GetRowVisible( _
   ByVal row As Integer _
) As Boolean
'使用法
 
Dim instance As SheetView
Dim row As Integer
Dim value As Boolean
 
value = instance.GetRowVisible(row)
public virtual bool GetRowVisible( 
   int row
)

パラメータ

row
行インデックス

戻り値の型

Boolean:行が表示される場合は True、それ以外の場合は False
次のサンプルコードでは、このメンバを使用して、行が表示されるかどうかを返しています。
DialogResult dlg; 
bool b;
dlg = MessageBox.Show("Do you want to hide the first row?", "Get/SetRowVisible", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
    fpSpread1.ActiveSheet.SetRowVisible(0, false);
    b = fpSpread1.ActiveSheet.GetRowVisible(0);
    label1.Text = "Get/SetRowVisible for row 0 = " + b.ToString();
}
Dim dlg As DialogResult
Dim b As Boolean
dlg = MessageBox.Show("Do you want to hide the first row?", "Get/SetrowVisible", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
    FpSpread1.ActiveSheet.SetRowVisible(0, False)
    b = FpSpread1.ActiveSheet.GetRowVisible(0)
    Label1.Text = "Get/SetRowVisible for row 0 = " & b.ToString()
End If
参照

SheetView クラス
SheetView メンバ

開発者ガイド

行と列の表示/非表示

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.