Gets whether a column on this sheet is displayed.
Syntax
Visual Basic (Declaration) | |
---|
Public Function GetColumnVisible( _
ByVal column As Integer _
) As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim column As Integer
Dim value As Boolean
value = instance.GetColumnVisible(column) |
Parameters
- column
- Column index
Return Value
Boolean:
true if the column is displayed;
false otherwise
Example
This example illustrates the use of this member by returning whether a column is visible.
C# | Copy Code |
---|
DialogResult dlg;
bool b;
dlg = MessageBox.Show("Do you want to hide the first column?", "Get/SetColumnVisible", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
fpSpread1.ActiveSheet.SetColumnVisible(0, false);
b = fpSpread1.ActiveSheet.GetColumnVisible(0);
label1.Text = "Get/SetColumnVisible for column 0 = " + b.ToString();
} |
Visual Basic | Copy Code |
---|
Dim dlg As DialogResult
Dim b As Boolean
dlg = MessageBox.Show("Do you want to hide the first column?", "Get/SetColumnVisible", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
FpSpread1.ActiveSheet.SetColumnVisible(0, False)
b = FpSpread1.ActiveSheet.GetColumnVisible(0)
Label1.Text = "Get/SetColumnVisible for column 0 = " & b.ToString()
End If |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also