Table of Contents

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

root DomNode

The subtree root.

tag string

The tag to match, compared ordinally.

Returns

IReadOnlyList<ContentControl>

The matching controls.

Exceptions

ArgumentNullException

root or tag is null.