ContainsParentOrSiblingOfType() Method

Definition

Assembly Markdig.dll

Determines whether there is a sibling of the specified type among root-level siblings. This walks up to find the root container, then checks all siblings.

public bool ContainsParentOrSiblingOfType<T>()
    where T : Inline

Type parameters

T
Type of the sibling to check

Returns

Boolean
true if a sibling of the specified type exists; false otherwise