IXmlCharacterData IXmlCharacterData IXmlCharacterData IXmlCharacterData Interface

Provides text manipulation methods that are used by several objects.

Syntax

Declaration

public interface IXmlCharacterDatapublic interface IXmlCharacterDataPublic Interface IXmlCharacterData

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

Interface inheritance

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

Properties summary

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

Gets the length of the data, in Unicode characters.

Methods summary

Appends the supplied string to the existing string data.

Deletes specified data.

Inserts a string at the specified offset.

Replaces the specified number of characters with the supplied string.

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

Properties

  • Data
    Data
    Data
    Data

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

    public string Data { get; set; }public string Data { get; set; }Public ReadWrite Property Data As string

    Property Value

    • string
      string
      string
      string

      The node data.

  • Length
    Length
    Length
    Length

    Gets the length of the data, in Unicode characters.

    public uint Length { get; }public uint Length { get; }Public ReadOnly Property Length As uint

    Property Value

    • uint
      uint
      uint
      uint

      The length of the data, in Unicode characters.

Methods

  • AppendData(System.String)
    AppendData(System.String)
    AppendData(System.String)
    AppendData(System.String)

    Appends the supplied string to the existing string data.

    public void AppendData(System.String)public void AppendData(System.String)Public Function AppendData(System.String) As void

    Parameters

    • data
      System.String
      System.String
      System.String
      System.String

      The data to be appended to the existing string.

  • DeleteData(System.UInt32,System.UInt32)
    DeleteData(System.UInt32,System.UInt32)
    DeleteData(System.UInt32,System.UInt32)
    DeleteData(System.UInt32,System.UInt32)

    Deletes specified data.

    public void DeleteData(System.UInt32,System.UInt32)public void DeleteData(System.UInt32,System.UInt32)Public Function DeleteData(System.UInt32,System.UInt32) As void

    Parameters

    • offset
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

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

    • count
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The number of characters to delete.

  • InsertData(System.UInt32,System.String)
    InsertData(System.UInt32,System.String)
    InsertData(System.UInt32,System.String)
    InsertData(System.UInt32,System.String)

    Inserts a string at the specified offset.

    public void InsertData(System.UInt32,System.String)public void InsertData(System.UInt32,System.String)Public Function InsertData(System.UInt32,System.String) As void

    Parameters

    • offset
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

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

    • data
      System.String
      System.String
      System.String
      System.String

      The data to be inserted into the existing string.

  • ReplaceData(System.UInt32,System.UInt32,System.String)
    ReplaceData(System.UInt32,System.UInt32,System.String)
    ReplaceData(System.UInt32,System.UInt32,System.String)
    ReplaceData(System.UInt32,System.UInt32,System.String)

    Replaces the specified number of characters with the supplied string.

    public void ReplaceData(System.UInt32,System.UInt32,System.String)public void ReplaceData(System.UInt32,System.UInt32,System.String)Public Function ReplaceData(System.UInt32,System.UInt32,System.String) As void

    Parameters

    • offset
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

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

    • count
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The number of characters to replace.

    • data
      System.String
      System.String
      System.String
      System.String

      The new data that replaces the old string data.

  • SubstringData(System.UInt32,System.UInt32)
    SubstringData(System.UInt32,System.UInt32)
    SubstringData(System.UInt32,System.UInt32)
    SubstringData(System.UInt32,System.UInt32)

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

    public string SubstringData(System.UInt32,System.UInt32)public string SubstringData(System.UInt32,System.UInt32)Public Function SubstringData(System.UInt32,System.UInt32) As string

    Parameters

    • offset
      System.UInt32
      System.UInt32
      System.UInt32
      System.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
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

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

    Returns

    • string
      string
      string
      string

      The returned substring.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Data.Xml.Dom.dll