GoXam for WPF v3
FindPartAt<T> Method (DiagramPanel)
Northwoods.GoXam Namespace > DiagramPanel Class : FindPartAt<T> Method
the Type of part to find
a Point in model coordinates
This is a predicate that is given an part of type T; if the predicate returns true, this method returns that part. If this argument is null, this returns the first part it finds at the point.
The kinds of Layers to search in. For example, if you are looking for Nodes, using the value SearchLayers.Nodes, this will speed up the search by ignoring layers containing Links.
Return the front-most Part that is at a given point.
Syntax
public T FindPartAt<T>( 
   Point p,
   Predicate<T> pred,
   SearchLayers layers
)
where T: Part

Parameters

p
a Point in model coordinates
pred
This is a predicate that is given an part of type T; if the predicate returns true, this method returns that part. If this argument is null, this returns the first part it finds at the point.
layers
The kinds of Layers to search in. For example, if you are looking for Nodes, using the value SearchLayers.Nodes, this will speed up the search by ignoring layers containing Links.

Type Parameters

T
the Type of part to find

Return Value

null if no such part is found
See Also

Reference

DiagramPanel Class
DiagramPanel Members