TopicTransformationExtensionsPrecedingSiblings Method
Return all preceding sibling elements that optionally match the given element's name
Namespace: Sandcastle.Core.PresentationStyle.TransformationAssembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.12.21.0
public static IEnumerable<XElement> PrecedingSiblings(
this XElement element,
XName name
)
<ExtensionAttribute>
Public Shared Function PrecedingSiblings (
element As XElement,
name As XName
) As IEnumerable(Of XElement)
public:
[ExtensionAttribute]
static IEnumerable<XElement^>^ PrecedingSiblings(
XElement^ element,
XName^ name
)
[<ExtensionAttribute>]
static member PrecedingSiblings :
element : XElement *
name : XName -> IEnumerable<XElement>
- element XElement
- The starting element
- name XName
- The element name to match or null for all preceding siblings
IEnumerableXElementAn enumerable list of the preceding sibling elements optionally limited to those with a
matching nameIn Visual Basic and C#, you can call this method as an instance method on any object of type
XElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).