Sdílet prostřednictvím


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

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

Atributy

Poznámky

Třída ControlDesigner je povahu určená jen pro čtení. Funkce pro čtení a zápis 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 z ContainerControlDesigner třídy, do které můžete přidat upravitelné oblasti návrháře nebo z objektu TemplatedControlDesigner , do kterého můžete vytvářet upravitelné oblasti návrháře v šablonách.

Platí pro

Viz také