Menu.SkipLinkText 속성

정의

링크 목록을 건너뛸 수 있는 기능을 제공하기 위해 화면 읽기 프로그램에서 읽은 숨겨진 이미지의 대체 텍스트를 가져오거나 설정합니다.

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

속성 값

링크 목록을 건너뛸 수 있는 기능을 제공하기 위해 화면 읽기 프로그램에서 읽은 숨겨진 이미지의 대체 텍스트입니다. 기본값은 이 속성이 설정되지 않음을 나타내는 빈 문자열("")입니다.

예제

다음 코드 예제에서는 링크 목록을 건너뛰는 기능을 제공 하도록 화면 읽기 프로그램에서 읽은 숨겨진된 이미지에 대 한 대체 텍스트를 지정 하는 속성을 사용 SkipLinkText 하는 방법을 보여 줍니다.


<%@ 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 SkipLinkText Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>Menu SkipLinkText Example</h3>

      <asp:menu id="NavigationMenu"
        staticdisplaylevels="2"
        staticsubmenuindent="10" 
        orientation="Vertical"
        skiplinktext="Skip Menu" 
        runat="server">
      
        <items>
          <asp:menuitem text="Home"
            tooltip="Home">
            <asp:menuitem text="Music"
              tooltip="Music">
              <asp:menuitem text="Classical"
                tooltip="Classical"/>
              <asp:menuitem text="Rock"
                tooltip="Rock"/>
              <asp:menuitem text="Jazz"
                tooltip="Jazz"/>
            </asp:menuitem>
            <asp:menuitem text="Movies"
              tooltip="Movies">
              <asp:menuitem text="Action"
                tooltip="Action"/>
              <asp:menuitem text="Drama"
                tooltip="Drama"/>
              <asp:menuitem 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 SkipLinkText Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>Menu SkipLinkText Example</h3>

      <asp:menu id="NavigationMenu"
        staticdisplaylevels="2"
        staticsubmenuindent="10" 
        orientation="Vertical"
        skiplinktext="Skip Menu" 
        runat="server">
      
        <items>
          <asp:menuitem text="Home"
            tooltip="Home">
            <asp:menuitem text="Music"
              tooltip="Music">
              <asp:menuitem text="Classical"
                tooltip="Classical"/>
              <asp:menuitem text="Rock"
                tooltip="Rock"/>
              <asp:menuitem text="Jazz"
                tooltip="Jazz"/>
            </asp:menuitem>
            <asp:menuitem text="Movies"
              tooltip="Movies">
              <asp:menuitem text="Action"
                tooltip="Action"/>
              <asp:menuitem text="Drama"
                tooltip="Drama"/>
              <asp:menuitem text="Musical"
                tooltip="Musical"/>
            </asp:menuitem>
          </asp:menuitem>
        </items>
      
      </asp:menu>

    </form>
  </body>
</html>

설명

SkipLinkText 이 속성을 사용하여 화면 읽기 프로그램에서 읽은 숨겨진 이미지의 대체 텍스트를 지정하여 링크 목록을 건너뛸 수 있는 기능을 제공합니다. 지정한 텍스트는 컨트롤의 접근성을 높이는 데 사용할 수 있는 숨겨진 건너뛰기 링크 이미지에 대한 설명과 함께 보조 기술 디바이스를 제공합니다.

설정 시 이 속성의 값은 디자이너 도구를 사용하여 리소스 파일에 자동으로 저장할 수 있습니다. 자세한 내용은 LocalizableAttribute 참조 하세요.

컨트롤은 Menu 전체 컨트롤을 SkipLinkText 화면 읽기 프로그램에서 건너뛰는 방법으로 속성을 제공합니다. SkipLinkText 속성을 설정하면 대체 텍스트가 있는 보이지 않는 이미지가 렌더링되어 사용자에게 컨트롤의 끝으로 이동할 수 있는 옵션이 제공됩니다. 화면 읽기 프로그램은 대체 텍스트를 소리 내어 읽고 이미지는 하나의 픽셀 공간만 차지합니다. 페이지 렌더링을 픽셀 단위로 정확하게 제어하려면 속성을 빈 문자열("")로 설정하고 SkipLinkText 메뉴를 건너뛰는 고유한 메커니즘을 제공합니다. 속성은 SkipLinkText 기본적으로 빈 문자열로 설정됩니다.

적용 대상

추가 정보