Interface IParentNode
Interface IParentNode
Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML.dll (25.1.0)
Aspose.Html.Dom.IParentNode インターフェースを定義し、すべての親ノードが実装します。
[ComVisible(true)]
[DOMNoInterfaceObject]
public interface IParentNode : IElementTraversal
実装
プロパティ
ChildElementCount
childElementCount 属性は、コンテキストオブジェクトの子要素の数を返す必要があります。
int ChildElementCount { get; }
プロパティ値
Children
子要素を返します。
[DOMName("children")]
HTMLCollection Children { get; }
プロパティ値
FirstElementChild
最初の子要素を返し、要素でない場合は null を返します。
Element FirstElementChild { get; }
プロパティ値
LastElementChild
最後の子要素を返し、要素でない場合は null を返します。
Element LastElementChild { get; }
プロパティ値
メソッド
QuerySelector(string)
ノードの子孫で、セレクターに一致する最初の要素を返します。
[DOMName("querySelector")]
[DOMNullable]
Element QuerySelector(string selectors)
パラメーター
selectors
string
セレクター。
戻り値
最初に一致した要素を返します。
QuerySelectorAll(string)
ノードのすべての子孫要素で、セレクターに一致するものを返します。
[DOMName("querySelectorAll")]
NodeList QuerySelectorAll(string selectors)
パラメーター
selectors
string
セレクター。
戻り値
コンテキストオブジェクトに対して、スコープマッチを実行したセレクター文字列 selectors の静的結果を返します。