ControlDesigner.ReadOnly Właściwość

Definicja

Przestroga

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

Pobiera lub ustawia wartość wskazującą, czy właściwości kontrolki są tylko do odczytu w czasie projektowania.

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

Wartość właściwości

Boolean

true, jeśli właściwości kontrolki są tylko do odczytu w czasie projektowania; w przeciwnym razie , false.

Atrybuty

Uwagi

Klasa ControlDesigner jest tylko do odczytu, z natury. Funkcje odczytu/zapisu są udostępniane przez dodanie DesignerRegion obiektu lub użycie klas bazowych, takich jak ContainerControlDesigner klasa.

Uwaga

Właściwość ReadOnly jest przestarzała. Pochodzi od ContainerControlDesigner klasy, do której można dodać edytowalne regiony projektanta lub z TemplatedControlDesigner obiektu, do którego można tworzyć edytowalne regiony projektanta w szablonach.

Dotyczy

Zobacz też