ControlDesigner.ReadOnly Propiedad

Definición

Precaució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

Obtiene o establece un valor que indica si las propiedades del control son de sólo lectura en tiempo de diseño.

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

Valor de propiedad

Boolean

Es true si las propiedades del control son de sólo lectura en tiempo de diseño; de lo contrario, es false.

Atributos

Comentarios

La ControlDesigner clase es de solo lectura, por naturaleza. Las características de lectura y escritura se proporcionan agregando un DesignerRegion objeto o usando clases base, como la ContainerControlDesigner clase .

Nota

La propiedad ReadOnly está obsoleta. Derive de la clase a la ContainerControlDesigner que puede agregar regiones de diseñador editables o del TemplatedControlDesigner objeto al que puede crear regiones de diseñador editables en plantillas.

Se aplica a

Consulte también