IValueProvider.IsReadOnly Property

 

Gets a value that specifies whether the value of a control is read-only.

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

abstract IsReadOnly : bool with get

Property Value

Type: System.Boolean

true if the value is read-only; false if it can be modified.

A control should have its IsEnabledProperty set to true and its IsReadOnlyProperty set to false before allowing a call to SetValue.

The following example shows an implementation of this method for a control that allows its value to be changed.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: