1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //-----------------------------------------------------------------------------
5 namespace System.Activities.Presentation.Services
7 using System.Activities.Presentation.Model;
8 using System.Activities.Presentation.Xaml;
11 /// The ModelSearchService class is responsible for generate a TextImage and navigate to
12 /// the corresponding ModelItem in the workflow designer.
14 public abstract class ModelSearchService
17 /// Constructs a new ModelSearchService.
19 protected ModelSearchService()
24 /// Generate a searchable text image based on the model item tree.
26 /// <returns></returns>
27 public abstract TextImage GenerateTextImage();
30 /// Navigate to a modelItem based on the line number in the text image.
32 /// <param name="location">the line number in text image.</param>
33 /// <returns>Is the Navivating succeed.</returns>
34 public abstract bool NavigateTo(int location);
37 /// Navigate to a modelItem based on the source location in the xaml file.
39 /// <param name="srcLocation">the source location in the xaml file.</param>
40 /// <returns>Is the Navivating succeed.</returns>
41 public abstract bool NavigateTo(int startLine, int startColumn, int endLine, int endColumn);