ControlDesigner.ReadOnly Property

Definition

Caution

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

Gets or sets a value indicating whether the properties of the control are read-only at design time.

C#
public bool ReadOnly { get; set; }
C#
[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; }

Property Value

true, if the properties of the control are read-only at design time; otherwise, false.

Attributes

Remarks

The ControlDesigner class is read-only, by nature. Read/write features are provided by adding a DesignerRegion object or using base classes, such as the ContainerControlDesigner class.

Nota

The ReadOnly property is obsolete. Derive from the ContainerControlDesigner class to which you can add editable designer regions or from the TemplatedControlDesigner object to which you can create editable designer regions in templates.

Applies to

Produto Versións (Obsoleto)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

See also