Name

XmlCharacterData

Synopsis

This class is an abstract parent class for the character data node types: XmlCDataSection, XmlComment, XmlSignificantWhitespace, XmlText, and XmlWhitespace. It defines methods for manipulating the text-based data of these nodes.

public abstract class XmlCharacterData : XmlLinkedNode {
// Protected Constructors
   protected internal method XmlCharacterData(string data, 
        XmlDocument doc);  
// Public Instance Properties
   public virtual field string Data{set; get; } 
   public override field string InnerText{set; get; }            // overrides XmlNode
   public virtual field int Length{get; } 
   public override field string Value{set; get; }                // overrides XmlNode
                  // Public Instance Methods
   public virtual method void AppendData(string strData);  
   public virtual method void DeleteData(int offset, 
        int count);  
   public virtual method void InsertData(int offset, 
        string strData);  
   public virtual method void ReplaceData(int offset, 
        int count, string strData);  
   public virtual method string Substring(int offset, 
        int count);  
}

Hierarchy

System.ObjectXmlNode(System.ICloneable, System.Collections.IEnumerable, System.Xml.XPath.IXPathNavigable)XmlLinkedNodeXmlCharacterData

Subclasses

XmlCDataSection, XmlComment, XmlSignificantWhitespace, XmlText, XmlWhitespace

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.