Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

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.

Signature
C#
C#
 public virtual Element[] GetElements(Type type)
Signature
vb.net
vb.net
Public Overridable Function GetElements(ByVal type As Type) As Element()
Parameters
Param
type
type

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

Returns

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

Example
Code Block
csharp
csharp
titleC#

          Element[] eArray = e.GetElements(Element.Type.Paragraph);
        
Code Block
vb.net
vb.net
titlevb.net

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