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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also