Menu.ScrollUpText Propriedade
Definição
Obtém ou define o texto alternativo para a imagem especificada na propriedade ScrollUpImageUrl.Gets or sets the alternate text for the image specified in the ScrollUpImageUrl property.
public:
property System::String ^ ScrollUpText { System::String ^ get(); void set(System::String ^ value); };
public string ScrollUpText { get; set; }
member this.ScrollUpText : string with get, set
Public Property ScrollUpText As String
Valor da propriedade
O texto alternativo para a imagem especificada na ScrollUpImageUrl propriedade.The alternate text for the image specified in the ScrollUpImageUrl property. O padrão é uma cadeia de caracteres vazia (""), que indica que essa propriedade não está definida.The default is an empty string (""), which indicates that this property is not set.
Exemplos
O exemplo de código a seguir demonstra como usar a ScrollUpText propriedade para especificar o texto alternativo para a imagem usada para indicar que o usuário pode rolar para cima em um menu dinâmico para itens de menu adicionais.The following code example demonstrates how to use the ScrollUpText property to specify the alternate text for the image used to indicate that the user can scroll up in a dynamic menu for additional menu items.
<%@ 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 Example</title>
</head>
<body>
<form id="form1" runat="server">
<h3>Menu Example</h3>
<asp:menu id="NavigationMenu"
staticdisplaylevels="2"
staticsubmenuindent="10"
orientation="Vertical"
ScrollDownImageUrl="Images\ScrollDownImage.jpg"
ScrollDownText="Down"
ScrollUpImageUrl="Images\ScrollUpImage.jpg"
ScrollUpText="Up"
runat="server">
<dynamicmenustyle Height="50"/>
<items>
<asp:menuitem text="Home">
<asp:menuitem text="Category 1">
<asp:menuitem text="Item 1"/>
<asp:menuitem text="Item 2"/>
<asp:menuitem text="Item 3"/>
<asp:menuitem text="Item 4"/>
<asp:menuitem text="Item 5"/>
<asp:menuitem text="Item 6"/>
<asp:menuitem text="Item 7"/>
<asp:menuitem text="Item 8"/>
<asp:menuitem text="Item 9"/>
<asp:menuitem text="Item 10"/>
</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 Example</title>
</head>
<body>
<form id="form1" runat="server">
<h3>Menu Example</h3>
<asp:menu id="NavigationMenu"
staticdisplaylevels="2"
staticsubmenuindent="10"
orientation="Vertical"
ScrollDownImageUrl="Images\ScrollDownImage.jpg"
ScrollDownText="Down"
ScrollUpImageUrl="Images\ScrollUpImage.jpg"
ScrollUpText="Up"
runat="server">
<dynamicmenustyle Height="50"/>
<items>
<asp:menuitem text="Home">
<asp:menuitem text="Category 1">
<asp:menuitem text="Item 1"/>
<asp:menuitem text="Item 2"/>
<asp:menuitem text="Item 3"/>
<asp:menuitem text="Item 4"/>
<asp:menuitem text="Item 5"/>
<asp:menuitem text="Item 6"/>
<asp:menuitem text="Item 7"/>
<asp:menuitem text="Item 8"/>
<asp:menuitem text="Item 9"/>
<asp:menuitem text="Item 10"/>
</asp:menuitem>
</asp:menuitem>
</items>
</asp:menu>
</form>
</body>
</html>
Comentários
Não há suporte para essa propriedade no modo de renderização .NET 4,0.This property is not supported in the .NET 4.0 rendering mode. Se essa propriedade for necessária, você poderá definir o menu para o modo de renderização .NET 3,5 adicionando o seguinte no código da página:If this property is required, you can set the menu to the .NET 3.5 rendering mode by adding the following in the page's code:
menuInstance.RenderingCompatibility = new Version(3, 5);
Quando um item de menu dinâmico contém itens adicionais na parte superior do menu, uma imagem é exibida para indicar que o usuário pode rolar para cima para exibir itens de menu adicionais.When a dynamic menu item contains additional items at the top of the menu, an image is displayed to indicate that the user can scroll up to view additional menu items. Use a ScrollUpText propriedade para especificar o texto alternativo para esta imagem.Use the ScrollUpText property to specify the alternate text for this image. O texto que você especifica fornece aos dispositivos de tecnologia assistencial uma descrição da imagem que pode ser usada para tornar o controle mais acessível.The text that you specify provides assistive technology devices with a description of the image that can be used to make the control more accessible.
O valor dessa propriedade, quando definido, pode ser salvo automaticamente em um arquivo de recurso usando uma ferramenta de designer.The value of this property, when set, can be saved automatically to a resource file by using a designer tool. Para obter mais informações, consulte, LocalizableAttribute globalização e localização.For more information, see LocalizableAttribute and Globalization and Localization.