TopicTransformationExtensions.PrecedingSiblings Method
Definition
- 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
elementXElementThe starting element
nameXNameThe 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