DeleteData Method
Collapse the table of content
Expand the table of content

XmlCharacterData.DeleteData Method

Remove a range of characters from the node.

[Visual Basic]
Public Overridable Sub DeleteData( _
   ByVal offset As Integer, _
   ByVal count As Integer _
public virtual void DeleteData(
 int offset,
 int count
public: virtual void DeleteData(
 int offset,
 int count
public function DeleteData(
   offset : int,
 count : int


The position within the string to start deleting.
The number of characters to delete.


This method fires the XmlNodeChangedAction.Change event.

Notes to Inheritors:  When overriding DeleteData in a derived class, in order for events to be fired correctly, you must either fire the event yourself, or call the base version of this method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

XmlCharacterData Class | XmlCharacterData Members | System.Xml Namespace

© 2015 Microsoft