14 public override string Value 42 public virtual string Data 56 if (eventArgs !=
null)
58 BeforeEvent(eventArgs);
61 if (eventArgs !=
null)
63 AfterEvent(eventArgs);
96 public virtual string Substring(
int offset,
int count)
98 int num = (data !=
null) ? data.Length : 0;
101 if (num < offset + count)
103 count = num - offset;
105 return data.Substring(offset, count);
115 int num = (data !=
null) ? data.Length : 0;
118 num += strData.Length;
122 if (eventArgs !=
null)
124 BeforeEvent(eventArgs);
127 if (eventArgs !=
null)
129 AfterEvent(eventArgs);
139 int num = (data !=
null) ? data.Length : 0;
142 num += strData.Length;
146 if (eventArgs !=
null)
148 BeforeEvent(eventArgs);
151 if (eventArgs !=
null)
153 AfterEvent(eventArgs);
162 int num = (data !=
null) ? data.Length : 0;
163 if (num > 0 && num < offset + count)
165 count =
Math.
Max(num - offset, 0);
170 if (eventArgs !=
null)
172 BeforeEvent(eventArgs);
175 if (eventArgs !=
null)
177 AfterEvent(eventArgs);
185 public virtual void ReplaceData(
int offset,
int count,
string strData)
187 int num = (data !=
null) ? data.Length : 0;
188 if (num > 0 && num < offset + count)
190 count =
Math.
Max(num - offset, 0);
193 string newValue = stringBuilder.
Insert(offset, strData).
ToString();
196 if (eventArgs !=
null)
198 BeforeEvent(eventArgs);
201 if (eventArgs !=
null)
203 AfterEvent(eventArgs);
207 internal bool CheckOnData(
string data)
209 return XmlCharType.Instance.IsOnlyWhitespace(data);
212 internal bool DecideXPNodeTypeForTextNodes(XmlNode node, ref
XPathNodeType xnt)
216 switch (node.NodeType)
226 if (!DecideXPNodeTypeForTextNodes(node.FirstChild, ref xnt))
236 node = node.NextSibling;
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
virtual void DeleteData(int offset, int count)
Removes a range of characters from the node.
virtual XmlNode ParentNode
Gets the parent of this node (for nodes that can have parents).
unsafe override string ToString()
Converts the value of this instance to a T:System.String.
unsafe StringBuilder Insert(int index, string value, int count)
Inserts one or more copies of a specified string into this instance at the specified character positi...
virtual void AppendData(string strData)
Appends the specified string to the end of the character data of the node.
virtual int Length
Gets the length of the data, in characters.
XmlNodeType
Specifies the type of node.
XPathNodeType
Defines the XPath node types that can be returned from the T:System.Xml.XPath.XPathNavigator class.
override string Value
Gets or sets the value of the node.
Provides data for the E:System.Xml.XmlDocument.NodeChanged, E:System.Xml.XmlDocument....
StringBuilder Append(char value, int repeatCount)
Appends a specified number of copies of the string representation of a Unicode character to this inst...
virtual string Data
Contains the data of the node.
Gets the node immediately preceding or following this node.
XmlNodeChangedAction
Specifies the type of node change.
static sbyte Max(sbyte val1, sbyte val2)
Returns the larger of two 8-bit signed integers.
virtual void InsertData(int offset, string strData)
Inserts the specified string at the specified character offset.
Represents a mutable string of characters. This class cannot be inherited.To browse the ....
virtual void ReplaceData(int offset, int count, string strData)
Replaces the specified number of characters starting at the specified offset with the specified strin...
Provides text manipulation methods that are used by several classes.
Provides constants and static methods for trigonometric, logarithmic, and other common mathematical f...
internal XmlCharacterData(string data, XmlDocument doc)
Initializes a new instance of the T:System.Xml.XmlCharacterData class.
Represents a single node in the XML document.
virtual string Substring(int offset, int count)
Retrieves a substring of the full string from the specified range.
StringBuilder Remove(int startIndex, int length)
Removes the specified range of characters from this instance.
override string InnerText
Gets or sets the concatenated values of the node and all the children of the node.