Spread Windows Forms 12.0 Product Documentation
TextCellType Constructor(TextCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > TextCellType Class > TextCellType Constructor : TextCellType Constructor(TextCellType)
Specified text cell type from which to copy
Creates a new copy from the specified cell type ("Copy constructor").
Syntax
'Declaration
 
Public Function New( _
   ByVal g As TextCellType _
)
'Usage
 
Dim g As TextCellType
 
Dim instance As New TextCellType(g)
public TextCellType( 
   TextCellType g
)

Parameters

g
Specified text cell type from which to copy
Example
This example creates a text cell.
FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
txt.CharacterCasing = CharacterCasing.Upper;            
fpSpread1.Sheets[0].Cells[0, 0].CellType = txt;
fpSpread1.Sheets[0].Cells[0, 0].Text = "This is a text cell.";
FarPoint.Win.Spread.CellType.TextCellType txt1 = new FarPoint.Win.Spread.CellType.TextCellType(txt);
fpSpread1.Sheets[0].Cells[0, 1].CellType = txt1;
fpSpread1.Sheets[0].Cells[0, 1].Text = "text cell.";
Dim txt As New FarPoint.Win.Spread.CellType.TextCellType()
txt.CharacterCasing = CharacterCasing.Upper         
fpSpread1.Sheets(0).Cells(0, 0).CellType = txt
fpSpread1.Sheets(0).Cells(0, 0).Text = "This is a text cell."
Dim txt1 As New FarPoint.Win.Spread.CellType.TextCellType(txt)
fpSpread1.Sheets(0).Cells(0, 1).CellType = txt1
fpSpread1.Sheets(0).Cells(0, 1).Text = "text cell."
See Also

Reference

TextCellType Class
TextCellType Members
Overload List