ShapeElement.FindPreviousInChildFields(ShapeField, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the first DiagramItem preceding the specified ShapeField. The search is confined to this shape's ShapeField collection, including its subfields.
public:
Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ FindPreviousInChildFields(Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ startFromField, bool focusableRequired);
public Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem FindPreviousInChildFields (Microsoft.VisualStudio.Modeling.Diagrams.ShapeField startFromField, bool focusableRequired);
member this.FindPreviousInChildFields : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * bool -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Function FindPreviousInChildFields (startFromField As ShapeField, focusableRequired As Boolean) As DiagramItem
Parameters
- startFromField
- ShapeField
The field from which to start the search. (This field is not included in the search.) If null, the search begins with the last field in the ShapeFields collection.
- focusableRequired
- Boolean
A value indicating whether the DiagramItem to find must be focusable.
Returns
The first DiagramItem preceding the specified ShapeField.
Remarks
This method may traverse descendents of the child fields looking for a viable previous item.