TableItemStyle.MergeWith(Style) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的 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)
参数
注解
使用该方法将 MergeWith 指定的 Style 样式属性合并到从中调用此方法的 TableItemStyle 类的实例中。
此方法联接对象的属性 Style 和类的 TableItemStyle 当前实例。 这可以通过使用参数的相应属性中的值设置类的当前实例 TableItemStyle 中未设置的每个属性 s 来实现。 仅替换尚未设置的属性。 如果未设置参数中的 s 属性,则它不会替换类的 TableItemStyle 当前实例中的相应属性。