MailBee.NET Objects 4.0

Element.GetAllElementsByName Method 

Returns the current HTML element and all its child elements having the specified tag name as a flat list.

public ElementReadOnlyCollection GetAllElementsByName(
   string tagName
);

Parameters

tagName
The HTML tag name. tagName is case-insensitive.

Return Value

A reference to the collection containing the current HTML element and all its child elements (including their own sub-children, etc) having the specified tag name.

Remarks

If tagName is a null reference, the returned collection will contain only those child elements which are not tags (i.e. plain-text blocks).

The returned collection is never empty (it contains at least the current element itself).

See Also

Element Class | MailBee.Html Namespace