Table of Contents

TopicTransformationExtensions.PrecedingSiblings Method

Definition

Namespace
Sandcastle.Core.PresentationStyle.Transformation
Assembly
Sandcastle.Core.dll

Return all preceding sibling elements that optionally match the given element's name

public static IEnumerable<XElement> PrecedingSiblings(this XElement element, XName name)

Parameters

element XElement

The starting element

name XName

The element name to match or null for all preceding siblings

Returns

IEnumerable<XElement>

An enumerable list of the preceding sibling elements optionally limited to those with a matching name