O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required