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 已經過時。 從你可以新增可編輯設計區域的類別,或是 ContainerControlDesignerTemplatedControlDesigner 你可以在範本中建立可編輯設計區域的物件來推導。

適用於

另請參閱