GrapeCity.Xaml.SpreadSheet.Data
FontSize Property (Cell)
Example 


Gets or sets the font size of the cell, in points.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property FontSize As Double
'Usage
 
Dim instance As Cell
Dim value As Double
 
instance.FontSize = value
 
value = instance.FontSize
[DefaultValue()]
public 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 uses the FontSize property.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = "testAutoFit";
gcSpreadSheet1.Sheets[0].Cells[1, 1].FontSize = 14;

private void Button_Click_1(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

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

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options