Spread Silverlight Documentation
FontSize Property (Cell)
Example 


Gets or sets the font size of the cell, in points.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property FontSize As System.Double
'Usage
 
Dim instance As Cell
Dim value As System.Double
 
instance.FontSize = value
 
value = instance.FontSize
[System.ComponentModel.DefaultValue()]
public System.double FontSize {get; set;}

Property Value

The size of the font in points. The default value is one point smaller than the browser default font size setting.
Example
This example sets the FontSize property.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = "testAutoFit";
gcSpreadSheet1.Sheets[0].Cells[1, 1].FontSize = 14;
gcSpreadSheet1.Invalidate();

private void Button_Click(object sender, RoutedEventArgs e)
{
     gcSpreadSheet1.AutoFitColumn(1);
     gcSpreadSheet1.AutoFitRow(1);
}
GcSpreadSheet1.Sheets(0).Cells(1, 1).Value = "testAutoFit"
GcSpreadSheet1.Sheets(0).Cells(1, 1).FontSize = 12
GcSpreadSheet1.Invalidate()

Private Sub Button_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
     GcSpreadSheet1.AutoFitRow(1)
     GcSpreadSheet1.AutoFitColumn(1)
End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.