Method FindContentControlsByTag
- Namespace
- DocWright.Dom.ContentControls
- Assembly
- DocWright.Dom.dll
FindContentControlsByTag(DomNode, string)
Finds every content control by tag, in document order. Tags are not required to be unique, so this returns a list rather than a single control.
public static IReadOnlyList<ContentControl> FindContentControlsByTag(this DomNode root, string tag)
Parameters
Returns
- IReadOnlyList<ContentControl>
The matching controls.
Exceptions
- ArgumentNullException
rootortagis null.