Spread WPF Documentation
FontTheme Property (Column)
Example 


Gets or sets the font theme for the column.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property FontTheme As System.String
'Usage
 
Dim instance As Column
Dim value As System.String
 
instance.FontTheme = value
 
value = instance.FontTheme
[System.ComponentModel.DefaultValue()]
public System.string FontTheme {get; set;}

Property Value

The font theme.
Example
This example sets the FontTheme property.
gcSpreadSheet1.Sheets[0].Rows[1].BackgroundThemeColor = "Accent 1 40";
gcSpreadSheet1.Sheets[0].Columns[2].BackgroundThemeColor = "Accent 3 40";
gcSpreadSheet1.Sheets[0].Rows[1].ForegroundThemeColor = "Accent 6 40";
gcSpreadSheet1.Sheets[0].Rows[1].FontTheme = "Heading";
gcSpreadSheet1.Sheets[0].Columns[2].ForegroundThemeColor = "Accent 6 40";
gcSpreadSheet1.Sheets[0].Columns[2].FontTheme = "Headings";         
gcSpreadSheet1.Invalidate();           

private void button1_Click(object sender, RoutedEventArgs e)
{
gcSpreadSheet1.Sheets[0].Cells[0, 0, 2, 2].Text = "Test";
gcSpreadSheet1.Invalidate();
}
GcSpreadSheet1.Sheets(0).Rows(1).BackgroundThemeColor = "Accent 1 40"
GcSpreadSheet1.Sheets(0).Columns(2).BackgroundThemeColor = "Accent 3 40"
GcSpreadSheet1.Sheets(0).Rows(1).ForegroundThemeColor = "Accent 6 40"
GcSpreadSheet1.Sheets(0).Rows(1).FontTheme = "Heading"
GcSpreadSheet1.Sheets(0).Columns(2).ForegroundThemeColor = "Accent 6 40"
GcSpreadSheet1.Sheets(0).Columns(2).FontTheme = "Headings"         
GcSpreadSheet1.Invalidate()    

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
GcSpreadSheet1.Sheets(0).Cells(0, 0, 2, 2).Text = "Test"
GcSpreadSheet1.Invalidate()
End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.