ModulePage.ReadOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current delegation mode for the page.
protected:
virtual property bool ReadOnly { bool get(); };
protected virtual bool ReadOnly { get; }
member this.ReadOnly : bool
Protected Overridable ReadOnly Property ReadOnly As Boolean
Property Value
true
if the current delegation mode for this page is read-only; otherwise, false
. The default is false
.
Examples
The following example implements this method.
void InitializeState(PropertyBag bag) {
_readOnly = (bool)bag[SH.ReadOnly];
this.RightToLeftLayout = (bool)bag[SH.RightToLeftLayout];
}