Idioma

ControlDesigner.ReadOnly Propriedade

Definição

Atenção

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

Recebe ou define um valor que indica se as propriedades do controlo são apenas leitura no momento do projeto.

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 Propriedade

true, se as propriedades do controlo forem apenas leitura no momento do projeto; caso contrário, false.

Atributos

Observações

A ControlDesigner aula é apenas de leitura, por natureza. As funcionalidades de leitura/escrita são fornecidas adicionando um DesignerRegion objeto ou usando classes base, como a ContainerControlDesigner classe.

Note

A ReadOnly propriedade está obsoleta. Deriva da ContainerControlDesigner classe à qual podes adicionar regiões de designer editáveis ou do TemplatedControlDesigner objeto para o qual podes criar regiões de designer editáveis em templates.

Aplica-se a

Consulte também