Click or drag to resize
Sandcastle Help File BuilderControlExtensionsFlatten Method
This is used to flatten a flow document element hierarchy for searching

Namespace: SandcastleBuilder.WPF
Assembly: SandcastleBuilder.WPF (in SandcastleBuilder.WPF.dll) Version: 2014.11.22.0
Syntax
public static IEnumerable<TextElement> Flatten(
	this TextElement element
)

Parameters

element
Type: System.Windows.DocumentsTextElement
The starting element to flatten

Return Value

Type: IEnumerableTextElement
A flattened enumerable list containing the element and all child elements and their children recursively.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TextElement. 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).
See Also