Export (0) Print
Expand All

Style.CopyFrom Method

Duplicates the style properties of the specified Style into the instance of the Style class that this method is called from.

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

Parameters

s
A Style that represents the style to copy.

Remarks

Use the CopyFrom method to duplicate the style properties of the specified Style into the instance of the Style class that this method is called from.

CAUTION   All properties in the current instance of the Style class will be replaced by the associated property in the Style specified by the s parameter.

Requirements

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

See Also

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

Show:
© 2015 Microsoft