TableItemStyle.MergeWith(Style) 方法

定义

将指定的 Style 样式属性合并到从中调用此方法的 TableItemStyle 类的实例中。

public:
 override void MergeWith(System::Web::UI::WebControls::Style ^ s);
public override void MergeWith(System.Web.UI.WebControls.Style s);
override this.MergeWith : System.Web.UI.WebControls.Style -> unit
Public Overrides Sub MergeWith (s As Style)

参数

s
Style

表示要组合的样式的 A Style

注解

使用该方法将 MergeWith 指定的 Style 样式属性合并到从中调用此方法的 TableItemStyle 类的实例中。

此方法联接对象的属性 Style 和类的 TableItemStyle 当前实例。 这可以通过使用参数的相应属性中的值设置类的当前实例 TableItemStyle 中未设置的每个属性 s 来实现。 仅替换尚未设置的属性。 如果未设置参数中的 s 属性,则它不会替换类的 TableItemStyle 当前实例中的相应属性。

适用于

另请参阅