WizardStepBase.Title Propriedade

Definição

Obtém ou define o título a ser usado para uma etapa em um controle Wizard quando o recurso de barra lateral estiver habilitado.Gets or sets the title to use for a step in a Wizard control when the sidebar feature is enabled.

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

Valor da propriedade

String

O título a ser usado para uma etapa em um Wizard controle quando o recurso de barra lateral estiver habilitado.The title to use for a step in a Wizard control when the sidebar feature is enabled. O valor padrão é uma cadeia de caracteres vazia ("").The default value is an empty string ("").

Exemplos

O exemplo a seguir demonstra como usar a Title propriedade para exibir um título amigável para uma etapa no Wizard controle.The following example demonstrates using the Title property to display a user-friendly title for a step in the Wizard control. No exemplo, não Step1 tem sua Title propriedade definida, portanto ela aparece no Wizard controle como "WizardStep1".In the example, Step1 does not have its Title property set, so it appears in the Wizard control as "WizardStep1". Step2 tem sua Title propriedade definida, portanto aparece como "Step 2".Step2 does have its Title property set, so it appears as "Step 2".

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
      <asp:Wizard id="Wizard1" 
        runat="server" >
        <WizardSteps>
          <asp:WizardStep ID="WizardStep1"
            runat="server">
          </asp:WizardStep>
          <asp:WizardStep ID="WizardStep2" title="Step 2" 
            runat="server">
          </asp:WizardStep>
        </WizardSteps>
        <HeaderTemplate>
          <b>WizardStepBase Title Example</b>
        </HeaderTemplate>
      </asp:Wizard>
    </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">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
      <asp:Wizard id="Wizard1" 
        runat="server" >
        <WizardSteps>
          <asp:WizardStep ID="WizardStep1"
            runat="server">
          </asp:WizardStep>
          <asp:WizardStep ID="WizardStep2" title="Step 2" 
            runat="server">
          </asp:WizardStep>
        </WizardSteps>
        <HeaderTemplate>
          <b>WizardStepBase Title Example</b>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>

Comentários

Use a Title propriedade para exibir um título amigável para uma etapa em um Wizard controle quando o recurso de barra lateral estiver habilitado.Use the Title property to display a user-friendly title for a step in a Wizard control when the sidebar feature is enabled. Se a Title propriedade não estiver definida e o recurso de barra lateral estiver habilitado, o valor da ID propriedade será exibido para o botão da barra lateral.If the Title property is not set and the sidebar feature is enabled, the value of the ID property is displayed for the sidebar button.

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.

Aplica-se a

Confira também