共用方式為


IValueProvider.IsReadOnly Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
ReadOnly Property IsReadOnly As Boolean
bool IsReadOnly { get; }

Property Value

Type: System.Boolean
true if the value is read-only; false if it can be modified.

Remarks

A control should confirm that it is enabled and that is not read-only before it allows a call to SetValue to succeed.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.