Language

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 コントロールのタイトル バーの動詞ドロップダウン メニューを開くために、下向き矢印のような既定の画像が提供されます。

適用対象

こちらもご覧ください