Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns a collection of [Element|Element] objects that represent all the elements in the document of the specified type.{excerpt}
{signature:C#}
 public virtual Element[] GetElements(Type type)
Signature
{signature}{signature:vb.net
vb.net
}
Public Overridable Function GetElements(ByVal type As Type) As Element()
Parameters
Param
typetypeAn
{signature}
{parameters}
{param: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.

{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#}

          Element[] eArray = e.GetElements(Element.Type.Paragraph);
        
{code}
{code:vb.net
|title=vb.net
}

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

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle