| EAPCtrlUtilsReplaceWith Method  | 
 
            Replace this control in its parent's Controls collection, with the specified replacement.  If either control is null, no replacement is performed.
            
 
    Namespace: 
   NetQuarry
    Assembly:
   EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
 Syntax
Syntaxpublic static bool ReplaceWith(
	this Control original,
	Control replacement
)
<ExtensionAttribute>
Public Shared Function ReplaceWith ( 
	original As Control,
	replacement As Control
) As Boolean
Parameters
- original
- Type: System.Web.UIControl
 The control to be replaced.
- replacement
- Type: System.Web.UIControl
 The replacement control.
Return Value
Type: 
BooleanTrue if the control was replaced, else false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
 See Also
See Also