Topic Transformation ExtensionsPreceding Siblings Method
Return all preceding sibling elements that optionally match the given element's name
Definition
Namespace: Sandcastle.Core.PresentationStyle.Transformation
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
An enumerable list of the preceding sibling elements optionally limited to those with a matching name
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static IEnumerable<XElement> PrecedingSiblings(
this XElement element,
XName name
)VB
<ExtensionAttribute>
Public Shared Function PrecedingSiblings (
element As XElement,
name As XName
) As IEnumerable(Of XElement)C++
public:
[ExtensionAttribute]
static IEnumerable<XElement^>^ PrecedingSiblings(
XElement^ element,
XName^ name
)F#
[<ExtensionAttribute>]
static member PrecedingSiblings :
element : XElement *
name : XName -> IEnumerable<XElement> Parameters
- element XElement
- The starting element
- name XName
- The element name to match or null for all preceding siblings
Return Value
IEnumerableXElementAn enumerable list of the preceding sibling elements optionally limited to those with a matching name