| ControlExtensionsFindByName Method |
This is used to find all elements in a flow document with the given name
Namespace: SandcastleBuilder.WPFAssembly: SandcastleBuilder.WPF (in SandcastleBuilder.WPF.dll) Version: 2014.11.22.0
Syntax public static IEnumerable<TextElement> FindByName(
this FlowDocument document,
string name
)
<ExtensionAttribute>
Public Shared Function FindByName (
document As FlowDocument,
name As String
) As IEnumerable(Of TextElement)
public:
[ExtensionAttribute]
static IEnumerable<TextElement^>^ FindByName(
FlowDocument^ document,
String^ name
)
[<ExtensionAttribute>]
static member FindByName :
document : FlowDocument *
name : string -> IEnumerable<TextElement>
Parameters
- document
- Type: System.Windows.DocumentsFlowDocument
The flow document to search - name
- Type: SystemString
The element name to find
Return Value
Type:
IEnumerableTextElementAn enumerable list of elements with the given name
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FlowDocument. 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