Export (0) Print
Expand All

Style.MergeWith Method

Combines the style properties of the specified Style with the instance of the Style class that this method is called from.

[Visual Basic]
Public Overridable Sub MergeWith( _
   ByVal s As Style _
)
[C#]
public virtual void MergeWith(
 Style s
);
[C++]
public: virtual void MergeWith(
 Style* s
);
[JScript]
public function MergeWith(
   s : Style
);

Parameters

s
A Style that represents the style to combine.

Remarks

Use the MergeWith method to combine the style properties of the specified Style with the instance of the Style class that this method is called from.

CAUTION   This method joins the properties of both Style objects by setting each property that is not set in the current instance of the Style class with the value in the corresponding property of Style specified by the s parameter. Only properties that have not been set will be replaced. If a property in the s parameter is not set, it will not replace the corresponding property in the current instance of the Style class.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Style Class | Style Members | System.Web.UI.WebControls Namespace | CopyFrom

Show:
© 2015 Microsoft