Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Cell Class / ActualFocusable Property
Example


In This Topic
    ActualFocusable Property
    In This Topic
    Gets a value that indicates whether the user can currently set focus to the cell using the keyboard or mouse.
    Syntax
    'Declaration
     
    Public ReadOnly Property ActualFocusable As Boolean
    'Usage
     
    Dim instance As Cell
    Dim value As Boolean
     
    value = instance.ActualFocusable
    public bool ActualFocusable {get;}

    Property Value

    true if the user can set focus to the cell; otherwise, false.
    Remarks
    The style is composed of cell, row, column, sheet, conditional format, and alternating rows.
    Example
    This example uses the ActualFocusable property.
    GrapeCity.Windows.SpreadSheet.Data.Cell acell;
    acell = gcSpreadSheet1.Sheets[0].Cells[0, 0];
    acell.Background = new System.Windows.Media.SolidColorBrush(Color.FromArgb(200, 180, 50, 25));
    acell.Focusable = true;
    acell.ShrinkToFit = true;
    acell.Foreground = new System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 215, 100, 125));
    listBox1.Items.Add(acell.ActualBackground.ToString());
    listBox1.Items.Add(acell.ActualForeground.ToString());
    listBox1.Items.Add(acell.ActualFocusable.ToString());
    listBox1.Items.Add(acell.ActualShrinkToFit.ToString());
    gcSpreadSheet1.Invalidate();
    Dim acell As GrapeCity.Windows.SpreadSheet.Data.Cell
    acell = GcSpreadSheet1.Sheets(0).Cells(0, 0)
    acell.Background = New System.Windows.Media.SolidColorBrush(Color.FromArgb(200, 180, 50, 25))
    acell.Focusable = True
    acell.ShrinkToFit = True
    acell.Foreground = New System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 215, 100, 125))
    ListBox1.Items.Add(acell.ActualBackground.ToString())
    ListBox1.Items.Add(acell.ActualForeground.ToString())
    ListBox1.Items.Add(acell.ActualFocusable.ToString())
    ListBox1.Items.Add(acell.ActualShrinkToFit.ToString())
    GcSpreadSheet1.Invalidate()
    See Also