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


Gets or sets a value that indicates whether the user can set focus to the cell using the keyboard or mouse.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property Focusable As Boolean
'Usage
 
Dim instance As Cell
Dim value As Boolean
 
instance.Focusable = value
 
value = instance.Focusable
[DefaultValue()]
public bool Focusable {get; set;}

Property Value

true if the user can set focus to the cell; otherwise, false. The default value is true.
Example
This example uses the Focusable 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())
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options