[reflection] Coop handles icalls in System.Reflection and System.RuntimeTypeHandle...
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / View / IExpressionEditorInstance.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows.Controls;
6
7 namespace System.Activities.Presentation.View
8 {
9     public interface IExpressionEditorInstance
10     {
11         //Properties
12         Control HostControl { get; } // Returns a Control to be used to display in the ExpressionTextBox
13         string Text { get; set; }
14
15         ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
16         ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
17         int MinLines { get; set; }
18         int MaxLines { get; set; }
19         bool HasAggregateFocus { get; }
20         bool AcceptsReturn { get; set; }
21         bool AcceptsTab { get; set; }
22
23         //Methods
24         void Close(); // For closing and getting rid of the editor items - closes the specific expression editor
25         void Focus(); // For setting focus on the editor
26         void ClearSelection(); // Clear the selection in the editor
27         bool Cut();
28         bool Copy();
29         bool Paste();
30         bool Undo();
31         bool Redo();
32         bool CompleteWord();
33         bool GlobalIntellisense();
34         bool ParameterInfo();
35         bool QuickInfo();
36         bool IncreaseFilterLevel();
37         bool DecreaseFilterLevel();
38
39         bool CanCut();
40         bool CanCopy();
41         bool CanPaste();
42         bool CanUndo();
43         bool CanRedo();
44         bool CanCompleteWord();
45         bool CanGlobalIntellisense();
46         bool CanParameterInfo();
47         bool CanQuickInfo();
48         bool CanIncreaseFilterLevel();
49         bool CanDecreaseFilterLevel();
50
51         string GetCommittedText();
52
53         // Events
54         event EventHandler TextChanged; // An event which is raised when the text in an expression editor is changed
55         event EventHandler LostAggregateFocus; // An event which is raised when the expression editor lost aggregate focus
56         event EventHandler GotAggregateFocus; // An event which is raised when the expression editor got aggregate focus
57         event EventHandler Closing; // An event which is raised when the expression editor is closing
58     }
59 }