IRangeValueProvider.IsReadOnly Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

bool IsReadOnly { get; }

Property Value

Type: System.Boolean

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

The following example shows an implementation of this method for a control that is not read-only.

/// <summary>
/// Specifies whether the control is read-only.
/// </summary>
public bool IsReadOnly
{
    get 
    { 
        return !(this.customControl.Enabled); 
    }
}

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