[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.ReplaceElement

ReplaceElement Method

ReplaceElement(string, string, string, string)

Replaces the found elements with the specified HTML fragment.

Declaration
[Obsolete("This method is deprecated, please, use ReplaceElementAsync instead.")]
public void ReplaceElement(string replaceWith, string elementId, string elementTag = null, string elementClass = null)
<Obsolete("This method is deprecated, please, use ReplaceElementAsync instead.")>
Public Sub ReplaceElement(replaceWith As String, elementId As String, Optional elementTag As String = Nothing, Optional elementClass As String = Nothing)
Parameters
Type Name Description
string replaceWith

HTML fragment to replace with.

string elementId

The ID of the element to be replaced.

string elementTag

The Tag name of the elements to be replaced.

string elementClass

The class name of the elements to be replaced.