Click or drag to resize

ElementAncestors Method

Returns the all ancestors of the current Element object.

Namespace: SautinSoft.Document
Assembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.4.24
Syntax
public IEnumerable<Element> Ancestors(
	bool includeSelf
)

Parameters

includeSelf  Boolean
In case of true, returns itself also.

Return Value

IEnumerableElement
The collection with all ancestors of the current Element.
See Also