Northwoods.GoWPF 2.2.4 Assembly
FindPartsIn<T> Method

the type of part being searched for, either the type Part or inheriting from it
a Rect in model coordinates
Which kinds of parts to include; a typical value might be SearchFlags.SelectableParts.
The required geometric relationship with the part; the typical value is SearchInclusion.Inside.
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 within a rectangle.
Syntax
Public Function FindPartsIn(Of T As Part)( _
   ByVal rect As Rect, _
   ByVal srch As SearchFlags, _
   ByVal overlap As SearchInclusion, _
   ByVal layers As SearchLayers _
) As IEnumerable(Of T)
public IEnumerable<T> FindPartsIn<T>( 
   Rect rect,
   SearchFlags srch,
   SearchInclusion overlap,
   SearchLayers layers
)
where T: Part

Parameters

rect
a Rect 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

Reference

DiagramPanel Class
DiagramPanel Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback