<PackageReference Include="System.Xml.XmlDocument" Version="4.0.1-beta-23409" />

XmlCharacterData

public abstract class XmlCharacterData : XmlLinkedNode
Provides text manipulation methods that are used by several classes.
public virtual string Data { get; set; }

Contains the data of the node.

public virtual int Length { get; }

Gets the length of the data, in characters.

public virtual void AppendData(string strData)

Appends the specified string to the end of the character data of the node.

public virtual void DeleteData(int offset, int count)

Removes a range of characters from the node.

public virtual void InsertData(int offset, string strData)

Inserts the specified string at the specified character offset.

public virtual void ReplaceData(int offset, int count, string strData)

Replaces the specified number of characters starting at the specified offset with the specified string.

public virtual string Substring(int offset, int count)

Retrieves a substring of the full string from the specified range.