T
the type of part being searched for, either the type Part or inheriting from it
Northwoods.GoSilverlight 1.2.2 Assembly
FindPartsNear<T> Method
See Also  Send Feedback
Northwoods.GoXam Namespace > DiagramPanel Class : FindPartsNear<T> Method

p
a Point in model coordinates
dist
the distance, in model coordinates
srch
Which kinds of parts to include; a typical value might be SearchFlags.SelectableParts.
overlap
The required geometric relationship with the part; the typical value is SearchInclusion.Inside.
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.
Find parts that are near a point.

Syntax

Visual Basic (Declaration) 
Public Function FindPartsNear(Of T As Part)( _
   ByVal p As Point, _
   ByVal dist As Double, _
   ByVal srch As SearchFlags, _
   ByVal overlap As SearchInclusion, _
   ByVal layers As SearchLayers _
) As IEnumerable(Of T)
C# 
public IEnumerable<T> FindPartsNear<T>( 
   Point p,
   double dist,
   SearchFlags srch,
   SearchInclusion overlap,
   SearchLayers layers
)where T: Part

Parameters

p
a Point in model coordinates
dist
the distance, in model coordinates
srch
Which kinds of parts to include; a typical value might be SearchFlags.SelectableParts.
overlap
The required geometric relationship with the part; the typical value is SearchInclusion.Inside.
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 being searched for, either the type Part or inheriting from it

Requirements

See Also

© 2010 All Rights Reserved.