Spread for ASP.NET 10 Product Documentation
CanFocus Property (StyleInfo)
Example 


Gets or sets whether the style marks cells as CanFocus.
Syntax
'Declaration
 
Public Overridable Property CanFocus As Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As Boolean
 
instance.CanFocus = value
 
value = instance.CanFocus
public virtual bool CanFocus {get; set;}
Remarks
The combo box, button, text, hyperlink, radio button, and check box cells can still be edited if you set the CanFocus property to False. If you do not want the user to edit these cells, you will need to make the cell readonly.
Example
This example uses the CanFocus property.
FarPoint.Web.Spread.StyleInfo Style = new FarPoint.Web.Spread.StyleInfo();
Style.CanFocus = false;
Style.BackColor = Color.Beige;
// Style.ResetCanFocus();
FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style);
Dim Style As New FarPoint.Web.Spread.StyleInfo()
Style.CanFocus = False
Style.BackColor = Color.Beige
'Style.ResetCanFocus()
FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.