Spread Windows Forms 7.0 Product Documentation
ReadOnly Property
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > InputManCellTypeBase Class : ReadOnly Property


Glossary Item Box

Gets or sets a value that indicates whether this control is read-only.

Syntax

Visual Basic (Declaration) 
Public Property ReadOnly As Boolean
Visual Basic (Usage)Copy Code
Dim instance As InputManCellTypeBase
Dim value As Boolean
 
instance.ReadOnly = value
 
value = instance.ReadOnly
C# 
public bool ReadOnly {get; set;}

Property Value

true if the control is read-only; otherwise, false.
The default is false.

Remarks

When this property is set to true, the contents of the control cannot be changed by the user at runtime. With this property set to true, you can still set the value of the Text property in code. You can use this feature instead of disabling the control with the System.Windows.Forms.Control.Enabled property to allow the contents to be copied and ToolTips to be shown.

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.