I​Xml​Character​Data I​Xml​Character​Data I​Xml​Character​Data Interface

Definition

Provides text manipulation methods that are used by several objects.

public : interface IXmlCharacterDatapublic interface IXmlCharacterDataPublic Interface IXmlCharacterData
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

Remarks

Interface inheritance

IXmlCharacterData inherits IXmlNode, IXmlNodeSelector, and IXmlNodeSerializer. Types that implement IXmlCharacterData also implement the interface members of IXmlNode, IXmlNodeSelector, and IXmlNodeSerializer.

Properties

Data Data Data

Gets or sets the node data depending on the node type.

public : PlatForm::String Data { get; set; }public string Data { get; set; }Public ReadWrite Property Data As string
Value
PlatForm::String string string

The node data.

Attributes

Length Length Length

Gets the length of the data, in Unicode characters.

public : unsigned short Length { get; }public uint Length { get; }Public ReadOnly Property Length As uint
Value
unsigned short uint uint

The length of the data, in Unicode characters.

Attributes

Methods

AppendData(String) AppendData(String) AppendData(String)

Appends the supplied string to the existing string data.

public : void AppendData(PlatForm::String data)public void AppendData(String data)Public Function AppendData(data As String) As void
Parameters
data
PlatForm::String String String

The data to be appended to the existing string.

Attributes

DeleteData(UInt32, UInt32) DeleteData(UInt32, UInt32) DeleteData(UInt32, UInt32)

Deletes specified data.

public : void DeleteData(unsigned int offset, unsigned int count)public void DeleteData(UInt32 offset, UInt32 count)Public Function DeleteData(offset As UInt32, count As UInt32) As void
Parameters
offset
unsigned int UInt32 UInt32

The offset, in characters, at which to start deleting the string data.

count
unsigned int UInt32 UInt32

The number of characters to delete.

Attributes

InsertData(UInt32, String) InsertData(UInt32, String) InsertData(UInt32, String)

Inserts a string at the specified offset.

public : void InsertData(unsigned int offset, PlatForm::String data)public void InsertData(UInt32 offset, String data)Public Function InsertData(offset As UInt32, data As String) As void
Parameters
offset
unsigned int UInt32 UInt32

The offset, in characters, at which to insert the supplied string data.

data
PlatForm::String String String

The data to be inserted into the existing string.

Attributes

ReplaceData(UInt32, UInt32, String) ReplaceData(UInt32, UInt32, String) ReplaceData(UInt32, UInt32, String)

Replaces the specified number of characters with the supplied string.

public : void ReplaceData(unsigned int offset, unsigned int count, PlatForm::String data)public void ReplaceData(UInt32 offset, UInt32 count, String data)Public Function ReplaceData(offset As UInt32, count As UInt32, data As String) As void
Parameters
offset
unsigned int UInt32 UInt32

The offset, in characters, at which to start replacing string data.

count
unsigned int UInt32 UInt32

The number of characters to replace.

data
PlatForm::String String String

The new data that replaces the old string data.

Attributes

SubstringData(UInt32, UInt32) SubstringData(UInt32, UInt32) SubstringData(UInt32, UInt32)

Retrieves a substring of the full string from the specified range.

public : PlatForm::String SubstringData(unsigned int offset, unsigned int count)public string SubstringData(UInt32 offset, UInt32 count)Public Function SubstringData(offset As UInt32, count As UInt32) As string
Parameters
offset
unsigned int UInt32 UInt32

Specifies the offset, in characters, from the beginning of the string. An offset of zero indicates copying from the start of the data.

count
unsigned int UInt32 UInt32

Specifies the number of characters to retrieve from the specified offset.

Returns
PlatForm::String string string

The returned substring.

Attributes

See Also