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

p
a Point in model coordinates
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 all of the Parts that are at a given point.

Syntax

Visual Basic (Declaration) 
Public Function FindPartsAt(Of T As Part)( _
   ByVal p As Point, _
   ByVal layers As SearchLayers _
) As IEnumerable(Of T)
C# 
public IEnumerable<T> FindPartsAt<T>( 
   Point p,
   SearchLayers layers
)where T: Part

Parameters

p
a Point in model coordinates
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

All of the Parts of the given type T that are at the Point p and that are in the kinds of layers indicated by layers. This returns an empty list if no qualifying parts are found.

Requirements

See Also

© 2012 All Rights Reserved.