System.Web.UI.WebControls.TableItemStyle.MergeWith Method

Combines the style properties of the specified System.Web.UI.WebControls.Style into the instance of the System.Web.UI.WebControls.TableItemStyle class that this method is called from.

Syntax

public override void MergeWith (Style s)

Parameters

s
A System.Web.UI.WebControls.Style that represents the style to combine.

Remarks

Use the TableItemStyle.MergeWith(Style) method to combine the style properties of the specified System.Web.UI.WebControls.Style into the instance of the System.Web.UI.WebControls.TableItemStyle class that this method is called from.

This method joins the properties of the System.Web.UI.WebControls.Style object and the current instance of the System.Web.UI.WebControls.TableItemStyle class. This is accomplished by setting each property that is not set in the current instance of the System.Web.UI.WebControls.TableItemStyle class with the value in the corresponding property of the s parameter. Only properties that have not been set are replaced. If a property in the s parameter is not set, it does not replace the corresponding property in the current instance of the System.Web.UI.WebControls.TableItemStyle class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0