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


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."
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

TextCellType Class
TextCellType Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.