Menu.DynamicEnableDefaultPopOutImage プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As Menu Dim value As Boolean value = instance.DynamicEnableDefaultPopOutImage instance.DynamicEnableDefaultPopOutImage = value
/** @property */ public boolean get_DynamicEnableDefaultPopOutImage () /** @property */ public void set_DynamicEnableDefaultPopOutImage (boolean value)
public function get DynamicEnableDefaultPopOutImage () : boolean public function set DynamicEnableDefaultPopOutImage (value : boolean)
サブメニューのある動的メニュー項目に対して組み込みイメージを表示する場合は true。それ以外の場合は false。既定値は true です。

動的メニュー項目にサブメニューがある場合は、イメージを表示して、ユーザーがメニュー項目の上にマウス ポインタを置くとメニューを展開できることを示すことができます。このイメージは次の 2 つの方法で表示できます。
DynamicPopOutImageUrl プロパティが設定されている場合は、そのイメージが組み込みイメージをオーバーライドします。
![]() |
---|
DynamicPopOutImageUrl プロパティが設定されておらず、DynamicEnableDefaultPopOutImage プロパティが false に設定されている場合は、イメージは表示されません。 |
イメージの代替テキストを指定するには、DynamicPopOutImageTextFormatString プロパティを設定します。ユーザーがマウス ポインタをイメージの上に置くと、このテキストがツールヒントとして表示されます。このテキストはイメージの説明として補助技術デバイスにも示され、より使いやすいコントロールを実現できます。

DynamicEnableDefaultPopOutImage プロパティを使用して、動的メニュー項目にサブメニューがあることを示すイメージを非表示にする方法のコード例を次に示します。非表示にするイメージに対して、DynamicPopOutImageUrl プロパティを空の文字列 ("") に設定する必要もあります。
<%@ Page Language="VB" %> <html> <body> <form runat="server"> <h3>Menu DynamicEnableDefaultPopOutImage Example</h3> <asp:menu id="NavigationMenu" dynamicenabledefaultpopoutimage="false" staticdisplaylevels="1" orientation="Vertical" runat="server"> <items> <asp:menuitem navigateurl="Home.aspx" text="Home" tooltip="Home"> <asp:menuitem navigateurl="Music.aspx" text="Music" tooltip="Music"> <asp:menuitem navigateurl="Classical.aspx" text="Classical" tooltip="Classical"/> <asp:menuitem navigateurl="Rock.aspx" text="Rock" tooltip="Rock"/> <asp:menuitem navigateurl="Jazz.aspx" text="Jazz" tooltip="Jazz"/> </asp:menuitem> <asp:menuitem navigateurl="Movies.aspx" text="Movies" tooltip="Movies"> <asp:menuitem navigateurl="Action.aspx" text="Action" tooltip="Action"/> <asp:menuitem navigateurl="Drama.aspx" text="Drama" tooltip="Drama"/> <asp:menuitem navigateurl="Musical.aspx" text="Musical" tooltip="Musical"/> </asp:menuitem> </asp:menuitem> </items> </asp:menu> </form> </body> </html>
<%@ Page Language="C#" %> <html> <body> <form runat="server"> <h3>Menu DynamicEnableDefaultPopOutImage Example</h3> <asp:menu id="NavigationMenu" dynamicenabledefaultpopoutimage="false" staticdisplaylevels="1" orientation="Vertical" runat="server"> <items> <asp:menuitem navigateurl="Home.aspx" text="Home" tooltip="Home"> <asp:menuitem navigateurl="Music.aspx" text="Music" tooltip="Music"> <asp:menuitem navigateurl="Classical.aspx" text="Classical" tooltip="Classical"/> <asp:menuitem navigateurl="Rock.aspx" text="Rock" tooltip="Rock"/> <asp:menuitem navigateurl="Jazz.aspx" text="Jazz" tooltip="Jazz"/> </asp:menuitem> <asp:menuitem navigateurl="Movies.aspx" text="Movies" tooltip="Movies"> <asp:menuitem navigateurl="Action.aspx" text="Action" tooltip="Action"/> <asp:menuitem navigateurl="Drama.aspx" text="Drama" tooltip="Drama"/> <asp:menuitem navigateurl="Musical.aspx" text="Musical" tooltip="Musical"/> </asp:menuitem> </asp:menuitem> </items> </asp:menu> </form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Menu.DynamicEnableDefaultPopOutImage プロパティのページへのリンク