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.

 public virtual Element[] GetElements(Type type)
Public Overridable Function GetElements(ByVal type As Type) As Element()

An Element.Type representing the type of element to be returned.

A a collection of Element objects that represent all the elements in the document of the specified type.


          Element[] eArray = e.GetElements(Element.Type.Paragraph);
        

          Dim eArray As Element() = e.GetElements(Element.Type.Paragraph)