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セキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



MenuDesigner.GetEmptyDesignTimeHtml メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS