Table of Contents

TocEntryCollection.Find Method

Definition

Namespace
Sandcastle.Core.ConceptualContent
Assembly
Sandcastle.Core.dll

Find(Predicate<TocEntry>, bool)

This is used to find all topics and sub-topics that match the specified predicate recursively

public IEnumerable<TocEntry> Find(Predicate<TocEntry> match, bool expandParentIfFound)

Parameters

match Predicate<TocEntry>

The match predicate

expandParentIfFound bool

True to expand the parent if a child node matches or false to leave it as is. Expanding the node ensures it is visible in the bound tree view.

Returns

IEnumerable<TocEntry>

An enumerable list of all matches

Find(string)

Find a TOC entry with the same source filename

public TocEntry Find(string sourceFilename)

Parameters

sourceFilename string

The source filename to match

Returns

TocEntry

The match TOC entry or null if not found