ControlDesigner.ReadOnly プロパティ

定義

注意事項

The recommended alternative is to inherit from ContainerControlDesigner instead and to use an EditableDesignerRegion. Regions allow for better control of the content in the designer. http://go.microsoft.com/fwlink/?linkid=14202

コントロールのプロパティがデザイン時に読み取り専用かどうかを示す値を取得または設定します。

public:
 property bool ReadOnly { bool get(); void set(bool value); };
public bool ReadOnly { get; set; }
[System.Obsolete("The recommended alternative is to inherit from ContainerControlDesigner instead and to use an EditableDesignerRegion. Regions allow for better control of the content in the designer. http://go.microsoft.com/fwlink/?linkid=14202")]
public bool ReadOnly { get; set; }
member this.ReadOnly : bool with get, set
[<System.Obsolete("The recommended alternative is to inherit from ContainerControlDesigner instead and to use an EditableDesignerRegion. Regions allow for better control of the content in the designer. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.ReadOnly : bool with get, set
Public Property ReadOnly As Boolean

プロパティ値

trueコントロールのプロパティがデザイン時に読み取り専用の場合。それ以外の場合は false

属性

注釈

ControlDesigner クラスは、本質的に読み取り専用です。 読み取り/書き込み機能は、 DesignerRegion オブジェクトを追加するか、基底クラス ( ContainerControlDesigner クラスなど) を使用して提供されます。

ReadOnly プロパティは廃止されています。 編集可能なデザイナー領域を追加できる ContainerControlDesigner クラス、またはテンプレートで編集可能なデザイナー領域を作成できる TemplatedControlDesigner オブジェクトから派生します。

適用対象

こちらもご覧ください