Spread for ASP.NET 7.0 Product Documentation
GetColumnVisible Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetColumnVisible Method


column
Column index

Glossary Item Box

Gets whether a column 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)
C# 
public bool GetColumnVisible( 
   int column
)

Parameters

column
Column index

Return Value

true if the column is displayed; otherwise false

Remarks

To specify whether a column is displayed, use the SetColumnVisible method.

To specify whether a row is displayed, use the SetRowVisible method.

Example

This example creates a SheetView object and a Column object. Values are inserted into the second column and the column is then hidden. Whether the column is visible is returned to a list box using the SheetView object.
C#Copy Code
FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView;
FarPoint.Web.Spread.Column mycol;
mycol=sv.Columns[1];
sv.SetValue(0,1,"Alignment");
sv.SetValue(1,1,"CarbAdjust");
sv.SetValue(2,1,"Brakes");
sv.SetColumnVisible(1,false);
ListBox1.Items.Add(Convert.ToString(sv.GetColumnVisible(1)));
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv=FpSpread1.ActiveSheetView
Dim mycol As FarPoint.Web.Spread.Column
mycol=sv.Columns(1)
sv.SetValue(0,1,"Alignment")
sv.SetValue(1,1,"CarbAdjust")
sv.SetValue(2,1,"Brakes")
sv.SetColumnVisible(1,False)
ListBox1.Items.Add(sv.GetColumnVisible(1))

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.