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}{signature:
}
Signature
vb.net
vb.net
Public Overridable Function GetElements(ByVal type As Type) As Element()
{signature}
{parameters}
{param:type}An 
Parameters
Param
type
type

An Element.Type

representing

the

type

of

element

to

be

returned.

{param} {returns}A a collection of {{Element}} objects that represent all the elements in the document of the specified type.{returns} {example}{code:csharp|title=C#}

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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          Dim eArray As Element() = e.GetElements(Element.Type.Paragraph)
        
{code} {example}