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


GrapeCity.Xaml.SpreadSheet.Data Namespace > Cell Class : ActualForeground Property
Gets an object that describes the displayed foreground of a cell.
Syntax
'Declaration
 
Public ReadOnly Property ActualForeground As Brush
'Usage
 
Dim instance As Cell
Dim value As Brush
 
value = instance.ActualForeground
public Brush ActualForeground {get;}

Property Value

A Windows.UI.Xaml.Media.Brush object that specifies the foreground for the cell.
Remarks
The style is composed of cell, row, column, sheet, conditional format, and alternating rows.
Example
This example uses the ActualForeground property.
GrapeCity.Xaml.SpreadSheet.Data.Cell acell;
acell = gcSpreadSheet1.Sheets[0].Cells[0, 0];            
acell.Background = new Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.Aquamarine);      
acell.Focusable = true;
acell.ShrinkToFit = true;
acell.Foreground = new Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.Black);
listBox1.Items.Add(acell.ActualBackground.ToString());
listBox1.Items.Add(acell.ActualForeground.ToString());
listBox1.Items.Add(acell.Focusable.ToString());
listBox1.Items.Add(acell.ActualShrinkToFit.ToString());
Dim acell As GrapeCity.Xaml.SpreadSheet.Data.Cell
acell = GcSpreadSheet1.Sheets(0).Cells(0, 0)
acell.Background = New Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.Aquamarine)
acell.Focusable = True
acell.ShrinkToFit = True
acell.Foreground = New Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.Black)
ListBox1.Items.Add(acell.ActualBackground.ToString())
ListBox1.Items.Add(acell.ActualForeground.ToString())
ListBox1.Items.Add(acell.Focusable.ToString())
ListBox1.Items.Add(acell.ActualShrinkToFit.ToString())
See Also

Reference

Cell Class
Cell Members