ControlDesigner.ReadOnly Vlastnost

Definice

Upozornění

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

Získá nebo nastaví hodnotu určující, zda vlastnosti ovládacího prvku jsou jen pro čtení v době návrhu.

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

Hodnota vlastnosti

Boolean

true, pokud jsou vlastnosti ovládacího prvku při návrhu jen pro čtení; falsev opačném případě .

Atributy

Poznámky

Třída ControlDesigner je jen pro čtení, povahu. Funkce čtení a zápisu jsou poskytovány přidáním objektu DesignerRegion nebo pomocí základních tříd, jako ContainerControlDesigner je například třída.

Poznámka

Vlastnost ReadOnly je zastaralá. Odvozujte od ContainerControlDesigner třídy, do které můžete přidat upravitelné oblasti návrháře nebo objekt TemplatedControlDesigner , do kterého můžete vytvářet upravitelné oblasti návrháře v šablonách.

Platí pro

Viz také