Share via


ModulePage.ReadOnly Property

Definition

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];
}

Applies to