Visual Basic (Declaration) | |
---|---|
Public Property Visible As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ColumnHeader Dim value As Boolean instance.Visible = value value = instance.Visible |
C# | |
---|---|
public bool Visible {get; set;} |
Property Value
Boolean: true to display the header; false otherwiseSet the RowHeader Visible property to manage the display of row headers.
To allow printing of the column header, use the ShowColumnHeader property in the PrintInfo class.
This example hides the headers.
C# | ![]() |
---|---|
fpSpread1.ActiveSheet.ColumnHeader.RowCount = 3; fpSpread1.ActiveSheet.RowHeader.ColumnCount = 3; DialogResult dlg; dlg = MessageBox.Show("Do you want to hide the headers?"); if (dlg == DialogResult.OK) { fpSpread1.ActiveSheet.ColumnHeader.Visible = false; fpSpread1.ActiveSheet.RowHeader.Visible = false; } |
Visual Basic | ![]() |
---|---|
FpSpread1.ActiveSheet.ColumnHeader.RowCount = 3 FpSpread1.ActiveSheet.RowHeader.ColumnCount = 3 Dim dlg As DialogResult dlg = MessageBox.Show("Do you want to hide the headers?") If dlg = DialogResult.OK Then FpSpread1.ActiveSheet.ColumnHeader.Visible = False FpSpread1.ActiveSheet.RowHeader.Visible = False End If |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
ColumnHeader ClassColumnHeader Members
Visible Property (RowHeader)
ShowColumnHeader Property (PrintInfo)