次の方法で共有


ControlDesigner.AllowResize プロパティ

コントロールのサイズを変更できるかどうかを示す値を取得します。

Public Overridable ReadOnly Property AllowResize As Boolean
[C#]
public virtual bool AllowResize {get;}
[C++]
public: __property virtual bool get_AllowResize();
[JScript]
public function get AllowResize() : Boolean;

プロパティ値

コントロールのサイズを変更できる場合は true 。それ以外の場合は false

使用例

[Visual Basic] テンプレート宣言されたコントロール デザイナの AllowResize プロパティをオーバーライドするコード例を次に示します。このコードは、 TemplateExists および InTemplateMode の値が true かどうかをチェックします。AllowResize は、この両方のプロパティの値が false の場合に限り false を返します。

 
Public Overrides ReadOnly Property AllowResize() As Boolean
   Get
      ' When templates are not defined, render a read-only,
      ' fixed-size block. Once templates are defined or
      ' are being edited, the control allows resizing.
      Return TemplatesExist Or InTemplateMode
   End Get
End Property

[C#, C++, JScript] C#、C++、および JScript のサンプルはありません。Visual Basic のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ControlDesigner クラス | ControlDesigner メンバ | System.Web.UI.Design 名前空間