Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Property: IContent this[string]

  • Declared in: RT.Xml.IContent
  • Interface property

Declaration

IContent this[
    string selector
]

Summary

When applied to a tag, retrieves child tags or attributes; otherwise, throws an exception.

Remarks

Supported selectors are:

  • foo — retrieves child tags with the name foo.
  • #bar — retrieves child tags whose id attribute has the value bar.
  • .baz — retrieves child tags whose class attribute includes the value baz (space-separated).
  • foo#bar.baz.quux — the above can be combined. If no tags are found, an empty collection is returned.
  • @style — retrieves the style attribute. Returns null if no such attribute exists.