IXmlCharacterData
IXmlCharacterData
IXmlCharacterData
IXmlCharacterData
Interface
Definition
Provides text manipulation methods that are used by several objects.
public : interface IXmlCharacterDatapublic interface IXmlCharacterDataPublic Interface IXmlCharacterData// You can use this interface in JavaScript.
- Inheritance
-
IXmlCharacterDataIXmlCharacterDataIXmlCharacterDataIXmlCharacterData
- Attributes
| 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 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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The node data.
Length Length Length Length
Gets the length of the data, in Unicode characters.
public : unsigned int Length { get; }public uint Length { get; }Public ReadOnly Property Length As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The length of the data, in Unicode characters.
Methods
AppendData(String) 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// You can use this method in JavaScript.
- data
- PlatForm::String String String String
The data to be appended to the existing string.
DeleteData(UInt32, UInt32) 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// You can use this method in JavaScript.
- offset
- unsigned int UInt32 UInt32 UInt32
The offset, in characters, at which to start deleting the string data.
- count
- unsigned int UInt32 UInt32 UInt32
The number of characters to delete.
InsertData(UInt32, String) 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// You can use this method in JavaScript.
- offset
- unsigned int UInt32 UInt32 UInt32
The offset, in characters, at which to insert the supplied string data.
- data
- PlatForm::String String String String
The data to be inserted into the existing string.
ReplaceData(UInt32, UInt32, String) 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// You can use this method in JavaScript.
- offset
- unsigned int UInt32 UInt32 UInt32
The offset, in characters, at which to start replacing string data.
- count
- unsigned int UInt32 UInt32 UInt32
The number of characters to replace.
- data
- PlatForm::String String String String
The new data that replaces the old string data.
SubstringData(UInt32, UInt32) 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// You can use this method in JavaScript.
- offset
- unsigned int UInt32 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 UInt32
Specifies the number of characters to retrieve from the specified offset.
The returned substring.