ControlDesigner.ReadOnly プロパティ
アセンブリ: System.Design (system.design.dll 内)
構文<ObsoleteAttribute("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 Property ReadOnly As Boolean
Dim instance As ControlDesigner Dim value As Boolean value = instance.ReadOnly instance.ReadOnly = value
[ObsoleteAttribute("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; }
[ObsoleteAttribute(L"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: property bool ReadOnly { bool get (); void set (bool value); }
/** @property */ public boolean get_ReadOnly () /** @property */ public void set_ReadOnly (boolean value)
コントロールのプロパティがデザイン時に読み取り専用である場合は true。それ以外の場合は false。
解説ControlDesigner クラスは、本質的に読み取り専用です。読み書き機能は、DesignerRegion オブジェクトを追加するか、ContainerControlDesigner クラスなどの基本クラスを使用することによって実現します。
メモ |
|---|
| ReadOnly プロパティは今後使用しません。ContainerControlDesigner クラスから、編集可能なデザイナ領域を追加できるクラスを派生するか、または TemplatedControlDesigner から、テンプレート内に編集可能なデザイナ領域を作成できるクラスを派生します。 |
.NET Framework のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- ControlDesigner.ReadOnly プロパティのページへのリンク
.gif)