2 using System.Collections.Generic;
5 using System.Windows.Controls;
7 namespace System.Activities.Presentation.View
9 public interface IExpressionEditorInstance
12 Control HostControl { get; } // Returns a Control to be used to display in the ExpressionTextBox
13 string Text { get; set; }
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; }
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
33 bool GlobalIntellisense();
36 bool IncreaseFilterLevel();
37 bool DecreaseFilterLevel();
44 bool CanCompleteWord();
45 bool CanGlobalIntellisense();
46 bool CanParameterInfo();
48 bool CanIncreaseFilterLevel();
49 bool CanDecreaseFilterLevel();
51 string GetCommittedText();
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