T
the Type of part to find
Northwoods.GoWPF 1.3.5 Assembly
FindPartAt<T> Method
See Also  Send Feedback
Northwoods.GoXam Namespace > DiagramPanel Class : FindPartAt<T> Method

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.
Return the front-most Part that is at a given point.

Syntax

Visual Basic (Declaration) 
Public Function FindPartAt(Of T As Part)( _
   ByVal p As Point, _
   ByVal pred As Predicate(Of T), _
   ByVal layers As SearchLayers _
) As T
C# 
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

Requirements

See Also

© 2012 All Rights Reserved.