FormView.CreateControlStyle 方法
定义
protected:
override System::Web::UI::WebControls::Style ^ CreateControlStyle();
protected override System.Web.UI.WebControls.Style CreateControlStyle ();
override this.CreateControlStyle : unit -> System.Web.UI.WebControls.Style
Protected Overrides Function CreateControlStyle () As Style
返回
一个 Style,包含 FormView 控件的默认表样式。A Style that contains the default table style for the FormView control.
注解
CreateControlStyle方法是由 FormView 控件调用以创建其默认表样式对象的帮助器方法。The CreateControlStyle method is a helper method called by the FormView control to create its default table style object. 除了设置对象的默认样式以外 TableStyle ,此方法还将 CellPadding 属性设置为0。In addition to setting the default style of a TableStyle object, this method also sets the CellPadding property to 0.
继承者说明
扩展类时 FormView ,可以重写此方法以创建自己的默认样式。When extending the FormView class, you can override this method to create your own default style.