다음을 통해 공유


Menu.DynamicPopOutImageTextFormatString 속성

정의

동적 메뉴 항목에 하위 메뉴가 있음을 나타내는 데 사용되는 이미지의 대체 텍스트를 가져오거나 설정합니다.

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

속성 값

동적 메뉴 항목에 하위 메뉴가 있음을 나타내는 데 사용되는 이미지의 대체 텍스트입니다. 기본값은 이 속성이 설정되지 않음을 나타내는 빈 문자열("")입니다.

예제

다음 코드 예제에서는 동적 메뉴 항목에 하위 메뉴가 있음을 나타내는 데 사용 되는 이미지에 대 한 대체 텍스트를 지정 하는 속성을 사용 DynamicPopOutImageTextFormatString 하는 방법을 보여 줍니다. 이 텍스트는 사용자가 이미지 위에 마우스 포인터를 놓을 때 도구 설명으로 표시됩니다.


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>Menu StaticPopoutImageText and StaticPopoutImageUrl Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>Menu DynamicPopOutImageTextFormatString and StaticPopoutImageUrl Example</h3>
    
      <asp:menu id="NavigationMenu"
        staticdisplaylevels="1"
        staticsubmenuindent="10" 
        orientation="Vertical"
        target="_blank"
        DynamicPopOutImageTextFormatString="More..."
        dynamicpopoutimageurl="Images/Popout.jpg"   
        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="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>Menu DynamicPopoutImageText and DynamicPopoutImageUrl Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>Menu DynamicPopoutImageText and DynamicPopoutImageUrl Example</h3>
    
      <asp:menu id="NavigationMenu"
        disappearafter="2000"
        staticdisplaylevels="1"
        staticsubmenuindent="10" 
        orientation="Vertical"
        target="_blank"
        DynamicPopOutImageTextFormatString="More..."
        dynamicpopoutimageurl="Images/Popout.jpg"   
        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>

설명

동적 메뉴 항목에 하위 메뉴가 포함된 경우 사용자가 메뉴를 확장할 수 있음을 나타내는 이미지를 표시할 수 있습니다. 이 이미지의 DynamicPopOutImageTextFormatString 대체 텍스트를 지정하려면 이 속성을 사용합니다. 지정한 텍스트는 컨트롤의 접근성을 높이는 데 사용할 수 있는 이미지에 대한 설명과 함께 보조 기술 디바이스를 제공합니다.

이미지를 표시하는 방법에는 두 가지가 있습니다.

메모

이 속성은 기본 제공 이미지와 사용자 지정 이미지 모두에 적용됩니다.

적용 대상

추가 정보