Wizard.WizardSteps 속성

정의

컨트롤에 대해 정의된 모든 WizardStepBase 개체가 포함된 컬렉션을 가져옵니다.

public:
 virtual property System::Web::UI::WebControls::WizardStepCollection ^ WizardSteps { System::Web::UI::WebControls::WizardStepCollection ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.Themeable(false)]
public virtual System.Web.UI.WebControls.WizardStepCollection WizardSteps { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
[<System.Web.UI.Themeable(false)>]
member this.WizardSteps : System.Web.UI.WebControls.WizardStepCollection
Public Overridable ReadOnly Property WizardSteps As WizardStepCollection

속성 값

WizardStepCollection

WizardStepCollection에 대해 정의된 모든 WizardStepBase 개체를 나타내는 Wizard입니다.

특성

예제

다음 코드 예제에서는 프로그래밍 방식으로 컨트롤을 Wizard 만드는 방법과 메서드를 사용하여 Add 컬렉션에 개체를 WizardSteps 추가하는 WizardStepBase 방법을 보여 줍니다.

<%@ 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">

  // Programmatically create a Wizard control and dynamically
  // add WizardStep objects to it.    
  
  void Page_Load(object sender, EventArgs e) 
  {
    Wizard WizardControl = new Wizard();
      
    // Create some steps for the wizard and add them
    // to the Wizard control.
    for (int i = 0; i <= 5; i++)
    {
      WizardStepBase newStep = new WizardStep();
      newStep.ID = "Step" + (i + 1).ToString();
      WizardControl.WizardSteps.Add(newStep);
    }
    
    // Display the wizard on the page.
    PlaceHolder1.Controls.Add(WizardControl);
  }
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>WizardSteps Example</title>
</head>
<body>
    <form id="Form1" runat="server">
      <h3>WizardSteps Example</h3>
      <asp:PlaceHolder id="PlaceHolder1" 
        runat="server" />
    </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">
  
  ' Programmatically create a Wizard control and dynamically
  ' add WizardStep objects to it.    
  
  Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
      
    Dim WizardControl As New Wizard()
      
    ' Create some steps for the wizard and add them to 
    ' the Wizard control.
    For i As Integer = 0 To 5
      Dim newStep As WizardStepBase = New WizardStep()
      newStep.ID = "Step" + (i + 1).ToString()
      WizardControl.WizardSteps.Add(newStep)
    Next
    
    ' Display the wizard on the page.
    PlaceHolder1.Controls.Add(WizardControl)
        
  End Sub
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>WizardSteps Example</title>
</head>
<body>
    <form id="Form1" runat="server">
      <h3>WizardSteps Example</h3>
      <asp:PlaceHolder id="PlaceHolder1" 
        runat="server" />
    </form>
  </body>
</html>

설명

이 속성은 WizardSteps 컨트롤을 구성하는 개체의 WizardStepBase 컬렉션을 반환합니다 Wizard . 컬렉션을 사용하여 WizardSteps 프로그래밍 방식으로 컨트롤에 WizardStepBase 포함된 개체에 Wizard 액세스할 수 있습니다. Add, RemoveClearInsert 메서드를 사용하여 컬렉션의 개체를 WizardStepBase 프로그래밍 방식으로 조작합니다.

참고

Microsoft Visual Studio 2005 ActiveStepIndex 를 사용하는 경우 원본 뷰에 유지됩니다. 사이드바 단추를 클릭하여 디자인 보기에서 속성을 변경 WizardSteps 한 다음 페이지를 실행하면 컨트롤의 Wizard 첫 번째 단계가 다른 단계를 가리키기 때문에 ActiveStepIndex 표시되지 않을 수 있습니다.

컨트롤에 Wizard 여러 WizardStepCollection 컬렉션이 포함된 경우 컬렉션이 병합됩니다.

이 속성은 테마 또는 스타일시트 테마에 의해 설정될 수 없습니다. 자세한 내용은 ThemeableAttribute 하 고 ASP.NET 테마 및 스킨합니다.

적용 대상

추가 정보