Redigera

Dela via


XmlCharacterData.InsertData(Int32, String) Method

Definition

Inserts the specified string at the specified character offset.

public:
 virtual void InsertData(int offset, System::String ^ strData);
public virtual void InsertData (int offset, string strData);
public virtual void InsertData (int offset, string? strData);
abstract member InsertData : int * string -> unit
override this.InsertData : int * string -> unit
Public Overridable Sub InsertData (offset As Integer, strData As String)

Parameters

offset
Int32

The position within the string to insert the supplied string data.

strData
String

The string data that is to be inserted into the existing string.

Remarks

This method raises the XmlNodeChangedAction.Change event.

Notes to Inheritors

When overriding InsertData in a derived class, in order for events to be raised correctly, you must either raise the event yourself or call the base version of this method.

Applies to