Bagikan melalui


ControlDesigner.ReadOnly Properti

Definisi

Perhatian

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

Mendapatkan atau menetapkan nilai yang menunjukkan apakah properti kontrol bersifat baca-saja pada waktu desain.

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

Nilai Properti

true, jika properti kontrol baca-saja pada waktu desain; jika tidak, false.

Atribut

Keterangan

Kelas ControlDesigner ini baca-saja, secara alami. Fitur baca/tulis disediakan dengan menambahkan DesignerRegion objek atau menggunakan kelas dasar, seperti ContainerControlDesigner kelas .

Nota

Properti ReadOnly sudah usang. Berasal dari ContainerControlDesigner kelas tempat Anda dapat menambahkan wilayah perancang yang dapat diedit atau dari TemplatedControlDesigner objek tempat Anda dapat membuat wilayah desainer yang dapat diedit dalam templat.

Berlaku untuk

Lihat juga