Spread Windows Forms 6.0 Product Documentation
AutoText Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ColumnHeader Class : AutoText Property


Glossary Item Box

Gets or sets whether the column header displays letters or numbers or is blank.

Syntax

Visual Basic (Declaration) 
Public Property AutoText As HeaderAutoText
Visual Basic (Usage)Copy Code
Dim instance As ColumnHeader
Dim value As HeaderAutoText
 
instance.AutoText = value
 
value = instance.AutoText
C# 
public HeaderAutoText AutoText {get; set;}

Property Value

HeaderAutoText setting that specifies what appears for text in headers

Remarks

The automatic text is the text automatically assigned to header cells by Spread. Use this property to change the automatic text to blank or to numbers.

If your header has multiple column header rows, you can specify which header row displays the automatic text by setting the AutoTextIndex property.

This property does not have an effect unless the Visible property (or the SheetView ColumnHeaderVisible property) is set to true and the column header rows are not hidden.

For more information about automatic text, see Customizing the Default Header Labels.

Example

This example changes column header cells to be blank.
C#Copy Code
fpSpread1.ActiveSheet.ColumnHeader.AutoText = FarPoint.Win.Spread.HeaderAutoText.Blank;
Visual BasicCopy Code
FpSpread1.ActiveSheet.ColumnHeader.AutoText = FarPoint.Win.Spread.HeaderAutoText.Blank

Requirements

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

See Also

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