Description
Returns a collection of Element objects that represent the first level of elements in the document of the specified type. GetElements does not return nested elements.
C#
public virtual Element[] GetElements(Type type)
vb.net
Public Overridable Function GetElements(ByVal type As Type) As Element()
Parameters
type
An Element.Type representing the type of element to be returned.Returns
A a collection ofElement objects that represent all the elements in the document of the specified type.
Examples
C#
Element[] eArray = e.GetElements(Element.Type.Paragraph);
vb.net
Dim eArray As Element() = e.GetElements(Element.Type.Paragraph)
