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

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

静的メニュー項目にサブメニューが含まれている場合は、イメージを表示して、ユーザーがメニューを展開できることを示します。このイメージは次の 2 つの方法で表示できます。
StaticPopOutImageUrl プロパティが設定されている場合は、StaticEnableDefaultPopOutImage プロパティの値にかかわらず、そのイメージが組み込みイメージをオーバーライドします。
![]() |
---|
StaticPopOutImageUrl プロパティが設定されておらず、StaticEnableDefaultPopOutImage プロパティが false に設定されている場合は、イメージは表示されません。 |
イメージの代替テキストを指定するには、StaticPopOutImageTextFormatString プロパティを設定します。

StaticEnableDefaultPopOutImage プロパティを使用して、静的メニュー項目にサブメニューがあることを示すイメージを非表示にする方法のコード例を次に示します。非表示にするイメージに対して、StaticPopOutImageUrl プロパティを空の文字列 ("") に設定する必要もあります。
<%@ Page Language="VB" %> <html> <body> <form runat="server"> <h3>Menu StaticEnableDefaultPopOutImage Example</h3> <asp:menu id="NavigationMenu" staticenabledefaultpopoutimage="false" dynamichorizontaloffset="10" 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 StaticEnableDefaultPopOutImage Example</h3> <asp:menu id="NavigationMenu" staticenabledefaultpopoutimage="false" dynamichorizontaloffset="10" 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMenu.StaticEnableDefaultPopOutImage プロパティを検索する場合は、下記のリンクをクリックしてください。

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