Wizard.StepStyle 属性

定义

获取一个对 Style 对象的引用,该对象定义 WizardStep 对象的设置。Gets a reference to a Style object that defines the settings for the WizardStep objects.

public:
 property System::Web::UI::WebControls::TableItemStyle ^ StepStyle { System::Web::UI::WebControls::TableItemStyle ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.TableItemStyle StepStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.StepStyle : System.Web.UI.WebControls.TableItemStyle
Public ReadOnly Property StepStyle As TableItemStyle

属性值

TableItemStyle

一个对 Style 的引用,该对象定义 WizardStep 上的 Wizard 对象的样式设置。A reference to the Style that defines the style settings for the WizardStep objects on the Wizard.

属性

注解

StepStyle属性获取对 Style 对象的引用,该对象定义 WizardStep 控件上的对象的外观 WizardThe StepStyle property gets a reference to a Style object that defines the appearance for the WizardStep objects on the Wizard control. StepStyle属性是只读的; 但是,您可以设置它返回的对象的属性 StyleThe StepStyle property is read-only; however, you can set the properties of the Style object that it returns. 可以在窗体中以声明方式设置这些属性 Property-Subproperty ,其中 Subproperty 表示类的属性 Style (例如 CancelButtonStyle-ForeColor) 。You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the Style class (for example, CancelButtonStyle-ForeColor). 可以通过编程方式设置属性 Property.Subproperty , (例如 CancelButtonStyle.ForeColor) 。You can set a property programmatically in the form Property.Subproperty (for example, CancelButtonStyle.ForeColor).

常见设置包括自定义背景色、文本颜色和字体属性。Common settings include custom background color, text color, and font properties. 属性的样式设置 StepStyle 与控件的属性的样式设置合并在一起 Style WizardThe style settings for the StepStyle property are merged with the style settings for the Style property of the Wizard control. 在属性中应用的任何设置都将 StepStyle 重写控件的属性中的相应设置 Style WizardAny setting that is applied in the StepStyle property overrides the corresponding setting in the Style property of the Wizard control.

StepStyle可以设置以下属性来重写控件的 Style 属性 WizardThe following StepStyle properties can be set to override the Style properties of the Wizard control:

使用 TemplatedWizardStep 模板定义对象的外观时 WizardStepStepStyle 属性不起作用。When you use a TemplatedWizardStep template to define the appearance for the WizardStep objects, the StepStyle property has no effect.

适用于

另请参阅