MenuDesigner.GetEmptyDesignTimeHtml メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MenuDesigner.GetEmptyDesignTimeHtml メソッドの意味・解説 

MenuDesigner.GetEmptyDesignTimeHtml メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

マークアップを別の方法で使用できない場合に、関連付けられたコントロールのプレースホルダをデザイン時に表示するためのマークアップを取得します。

名前空間: System.Web.UI.Design.WebControls
アセンブリ: System.Design (system.design.dll 内)
構文構文

Protected Overrides Function
 GetEmptyDesignTimeHtml As String
Dim returnValue As String

returnValue = Me.GetEmptyDesignTimeHtml
protected override string GetEmptyDesignTimeHtml
 ()
protected:
virtual String^ GetEmptyDesignTimeHtml () override
protected String GetEmptyDesignTimeHtml ()
protected override function GetEmptyDesignTimeHtml
 () : String

戻り値
デザイン サーフェイスにプレースホルダを表示するためのマークアップ テキストを含んだ文字列。

解説解説
使用例使用例

MenuDesigner クラスから継承したクラスの GetEmptyDesignTimeHtml メソッドをオーバーライドする方法を次のコード例に示します。オーバーライドされたメソッドは、デザイン時に Menu クラスから派生したコントロールの外観を変更します。この例では、関連付けられたコントロールにメニュー項目が定義されていないことを示すメッセージを含んだプレースホルダのマークアップを生成しています。

' Generate the design-time markup for the control 
' when the template is empty.
Protected Overrides Function
 GetEmptyDesignTimeHtml() As String

    Dim noElements As String
 = "Contains no menu items."

    Return CreatePlaceHolderDesignTimeHtml(noElements)

End Function ' GetEmptyDesignTimeHtml
// Generate the design-time markup for the control 
// when the template is empty.
protected override string GetEmptyDesignTimeHtml()
{
    string noElements = "Contains no menu items.";

    return CreatePlaceHolderDesignTimeHtml(noElements);
} // GetEmptyDesignTimeHtml
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からMenuDesigner.GetEmptyDesignTimeHtml メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMenuDesigner.GetEmptyDesignTimeHtml メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMenuDesigner.GetEmptyDesignTimeHtml メソッド を検索

英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

MenuDesigner.GetEmptyDesignTimeHtml メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MenuDesigner.GetEmptyDesignTimeHtml メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS