- /// The SelectionChanged event.
- /// </summary>
- /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<SelectionChangedEventArgs> SelectionChanged
- {
- add
- {
- if (textEditorSelectionChangedEventHandler == null)
- {
- textEditorSelectionChangedCallbackDelegate = (OnSelectionChanged);
- SelectionChangedSignal().Connect(textEditorSelectionChangedCallbackDelegate);
- }
- textEditorSelectionChangedEventHandler += value;
- }
- remove
- {
- if (textEditorSelectionChangedEventHandler == null && SelectionChangedSignal().Empty() == false)
- {
- this.SelectionChangedSignal().Disconnect(textEditorSelectionChangedCallbackDelegate);
- }
- textEditorSelectionChangedEventHandler -= value;
- }
- }
-
- /// <summary>