[]
        
(Showing Draft Content)

FarPoint.Win.Elements.Replace

Replace Method

Replace(object, object)

Replaces an existing element with a new one.

Declaration
public virtual int Replace(object newObj, object oldObj)
Public Overridable Function Replace(newObj As Object, oldObj As Object) As Integer
Parameters
Type Name Description
object newObj

New element to be used

object oldObj

Element to be replaced

Returns
Type Description
int

New element if successful; otherwise, -1