Gets or sets the default font for text in cells in this alternating row.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Font As FontInfo |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AlternatingRow
Dim value As FontInfo
instance.Font = value
value = instance.Font |
Property Value
FontInfo object containing the font information for cells in this alternating row
Remarks
Example
This example sets the text in three cells and changes the font in all of the alternating rows.
C# | Copy Code |
---|
FpSpread1.Sheets[0].SetValue(0, 0, "Test");
FpSpread1.Sheets[0].SetValue(1, 0, "for");
FpSpread1.Sheets[0].SetValue(2, 0, "Fonts");
FpSpread1.Sheets[0].AlternatingRows[0].Font.Bold = true;
FpSpread1.Sheets[0].AlternatingRows[1].Font.Bold = true;
FpSpread1.Sheets[0].AlternatingRows[0].Font.Italic = true;
FpSpread1.Sheets[0].AlternatingRows[1].Font.Italic = true;
|
Visual Basic | Copy Code |
---|
FpSpread1.Sheets(0).SetValue(0, 0, "Test")
FpSpread1.Sheets(0).SetValue(1, 0, "for")
FpSpread1.Sheets(0).SetValue(2, 0, "Fonts")
FpSpread1.Sheets(0).AlternatingRows(0).Font.Bold = True
FpSpread1.Sheets(0).AlternatingRows(1).Font.Bold = True
FpSpread1.Sheets(0).AlternatingRows(0).Font.Italic = True
|
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also