[reflection] Coop handles icalls in System.Reflection and System.RuntimeTypeHandle...
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Model / ModelSearchService.cs
1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //-----------------------------------------------------------------------------
4
5 namespace System.Activities.Presentation.Services
6 {
7     using System.Activities.Presentation.Model;
8     using System.Activities.Presentation.Xaml;
9
10     /// <summary>
11     /// The ModelSearchService class is responsible for generate a TextImage and navigate to
12     /// the corresponding ModelItem in the workflow designer.
13     /// </summary>
14     public abstract class ModelSearchService
15     {
16         /// <summary>
17         /// Constructs a new ModelSearchService.
18         /// </summary>
19         protected ModelSearchService()
20         {
21         }
22
23         /// <summary>
24         /// Generate a searchable text image based on the model item tree.
25         /// </summary>
26         /// <returns></returns>
27         public abstract TextImage GenerateTextImage();
28
29         /// <summary>
30         /// Navigate to a modelItem based on the line number in the text image.
31         /// </summary>
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);
35
36         /// <summary>
37         /// Navigate to a modelItem based on the source location in the xaml file.
38         /// </summary>
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);
42     }
43 }