PropertyGridEditorPart.Title プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PropertyGridEditorPart.Title プロパティの意味・解説 

PropertyGridEditorPart.Title プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

エディタ コントロールタイトル取得または設定します

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

解説解説
使用例使用例

PropertyGridEditorPart コントロールTitle プロパティ使用する方法次のコード例示します例の実行必要なコード全体については、PropertyGridEditorPart クラス概要トピックで「例」を参照してください

PropertyGridEditorPart コントロールタイトルWeb ページ宣言して設定する方法を、次のコード例示します

<asp:EditorZone ID="EditorZone1" runat="server">
  <ZoneTemplate>
    <asp:PropertyGridEditorPart ID="PropertyGridEditorPart1"
 
      runat="server" 
      Title="Edit Custom Properties"
      OnPreRender="PropertyGridEditorPart1_PreRender"
 
      OnInit="PropertyGridEditorPart1_Init" />
   
  </ZoneTemplate>
</asp:EditorZone>
<asp:EditorZone ID="EditorZone1" runat="server">
  <ZoneTemplate>
    <asp:PropertyGridEditorPart ID="PropertyGridEditorPart1" 
      runat="server" 
      Title="Edit Custom Properties"
      OnPreRender="PropertyGridEditorPart1_PreRender" 
      OnInit="PropertyGridEditorPart1_Init" />   
  </ZoneTemplate>
</asp:EditorZone>

コード例次の部分は、Title プロパティの値をプログラム設定する方法示してます。プログラム割り当てられた値を永続化するために editControlTitle という名前の静的変数使用されコントロール初期化されるたびにこの値が Title プロパティ割り当てられます。これにより、この値が複数ポストバック イベントわたって保持されます。

Shared editControlTitle As String

Protected Sub Button1_Click(ByVal
 sender As Object, _
  ByVal e As System.EventArgs)
  editControlTitle = Server.HtmlEncode(TextBox1.Text)
  PropertyGridEditorPart1.Title = editControlTitle 
End Sub

Protected Sub PropertyGridEditorPart1_Init(ByVal
 _
  sender As Object, ByVal
 e As System.EventArgs)
  If Not editControlTitle Is
 Nothing Then
    PropertyGridEditorPart1.Title = editControlTitle
  End If
End Sub
private static String editControlTitle;

protected void Button1_Click(object sender,
 EventArgs e)
{
  editControlTitle = Server.HtmlEncode(TextBox1.Text);
  PropertyGridEditorPart1.Title = editControlTitle;
}

protected void PropertyGridEditorPart1_Init(object
 sender, EventArgs e)
{
  if (editControlTitle != null)
    PropertyGridEditorPart1.Title = editControlTitle;
}  

ブラウザページ読み込む場合、[Display Mode] ドロップダウン リスト コントロールで [編集モード] を選択して編集モード切り替えることができますUser Information WebPart コントロールタイトル バー動詞メニュー (下向き矢印) をクリックし、[編集] をクリックすることにより、コントロール編集できます編集ユーザー インターフェイス (UI) が表示状態の場合PropertyGridEditorPart コントロール表示されボタンおよびテキスト ボックスその上に配置されます。PropertyGridEditorPart コントロールタイトルは、Web ページ宣言型マークアップ割り当てられた値です。[Update EditorPart Title] ボタンの横のテキスト ボックステキスト入力してボタンクリックすると、コントロールタイトル更新されます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PropertyGridEditorPart クラス
PropertyGridEditorPart メンバ
System.Web.UI.WebControls.WebParts 名前空間
Part.Title プロパティ
その他の技術情報
ASP.NET Web パーツ ページ



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

辞書ショートカット

すべての辞書の索引

PropertyGridEditorPart.Title プロパティのお隣キーワード
検索ランキング

   

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



PropertyGridEditorPart.Title プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS