This documentation is archived and is not being maintained.

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 _
)
[C#]
public virtual void DeleteData(
 int offset,
 int count
);
[C++]
public: virtual void DeleteData(
 int offset,
 int count
);
[JScript]
public function DeleteData(
   offset : int,
 count : int
);

Parameters

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

Remarks

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.

Requirements

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

Show: