语言

WizardStepBase.StepType 属性

定义

获取或设置要为控件中的 Wizard 步骤显示的导航用户界面(UI)的类型。

public:
 virtual property System::Web::UI::WebControls::WizardStepType StepType { System::Web::UI::WebControls::WizardStepType get(); void set(System::Web::UI::WebControls::WizardStepType value); };
public virtual System.Web.UI.WebControls.WizardStepType StepType { get; set; }
member this.StepType : System.Web.UI.WebControls.WizardStepType with get, set
Public Overridable Property StepType As WizardStepType

属性值

枚举值之 WizardStepType 一。 默认值为 WizardStepType.Auto。

例外

所选值不是枚举值之一 WizardStepType 。

注解

使用该 StepType 属性指定要为控件中的 Wizard 步骤显示的导航按钮的类型。 如果为此属性指定值,则标记为 Complete 在边栏中处于禁用状态的任何步骤。

如果未为此属性指定值,则默认值为 WizardStepType.Auto。

下表列出了属性的可用设置 StepType 以及步骤的结果行为:

WizardStepType.Auto 为步骤呈现的导航 UI 由声明步骤的顺序决定。

WizardStepType.Complete 此步骤是显示的最后一个步骤。 不会呈现任何导航按钮。

WizardStepType.Finish 此步骤是最终数据收集步骤。 “完成”和“上一个”按钮呈现为导航。

WizardStepType.Start 此步骤是第一个显示的步骤。 不呈现上一个按钮。

WizardStepType.Step 此步骤是“开始”步骤和“完成”步骤之间的任意步骤。 “上一步”和“下一步”按钮呈现为导航。 此步骤类型可用于重写 Auto 步骤类型。

适用于

另请参阅