WebPartZoneBase.MenuPopupImageUrl プロパティ

定義

ゾーン内の各 WebPart コントロールのタイトル バーにある動詞ドロップダウン メニューを開くためのイメージへの URL を取得または設定します。

public:
 virtual property System::String ^ MenuPopupImageUrl { System::String ^ get(); void set(System::String ^ value); };
public virtual string MenuPopupImageUrl { get; set; }
member this.MenuPopupImageUrl : string with get, set
Public Overridable Property MenuPopupImageUrl As String

プロパティ値

動詞ドロップダウン メニューを開くために使用されるイメージへの URL を表す文字列。 既定値は空の文字列 ("") です。

次のコード例では、コントロールで プロパティを宣言的に MenuPopupImageUrl 使用する方法を WebPartZone 示します。 分離コード ソース ファイルや、このコードのゾーンを含む .aspx ページなど、完全なコード例については、クラスの概要に関するページを WebPartZoneBase 参照してください。

プロパティには MenuPopupImageUrl 、宣言型マークアップで値が割り当てられていることに注意してください。 この値は に影響します WebPartZone2。 ページをブラウザーに読み込んだ後、ページを編集モードに切り替えると、 のコントロール WebPartZone2の動詞メニュー ラベルに画像プレースホルダー (またはパスを割り当てた場合は実際の画像) が表示されます。

<asp:WebPartZone 
  ID="WebPartZone2"
  Runat="server" 
  DragHighlightColor="#00ff00"
  AllowLayoutChange="true"
  EmptyZoneText="Add WebParts to this empty Zone."
  BorderWidth="2"
  BorderColor="DarkBlue"
  BorderStyle="Dashed" 
  MenuLabelText="Verbs Menu" 
  MenuPopupImageUrl="label.gif" >
  <VerbStyle Font-Italic="true" />
  <MenuLabelStyle BackColor="Lime" BorderWidth="1"  />
  <MenuLabelHoverStyle Font-Bold="true" />
  <MenuVerbHoverStyle BackColor="LightGrey" />
  <MenuVerbStyle Font-Italic="true" /> 
  <ZoneTemplate>
    <asp:Label ID="Label1" Runat="server" Title="Date" />
  </ZoneTemplate>
</asp:WebPartZone>
<asp:WebPartZone 
  ID="WebPartZone2"
  Runat="server" 
  DragHighlightColor="#00ff00"
  AllowLayoutChange="true"
  EmptyZoneText="Add WebParts to this empty Zone."
  BorderWidth="2"
  BorderColor="DarkBlue"
  BorderStyle="Dashed" 
  MenuLabelText="Verbs Menu" 
  MenuPopupImageUrl="label.gif" >
  <VerbStyle Font-Italic="true" />
  <MenuLabelStyle BackColor="Lime" BorderWidth="1"  />
  <MenuLabelHoverStyle Font-Bold="true" />
  <MenuVerbHoverStyle BackColor="LightGrey" />
  <MenuVerbStyle Font-Italic="true" /> 
  <ZoneTemplate>
    <asp:Label ID="Label1" Runat="server" Title="Date" />
  </ZoneTemplate>
</asp:WebPartZone>

注釈

プロパティに MenuPopupImageUrl 値が割り当てられていない場合は、コントロールのタイトル バーで動詞ドロップダウン メニューを開くために、下向き矢印のような既定の画像が WebPart 提供されます。

適用対象

こちらもご覧ください