Example #1
0
        private void CleanUp()
        {
            // HACK: 5.7. CleanUp
            RightMarginAdornment?.CleanUp();
            LineBreaksAdornment?.CleanUp();
            LineIndicator?.CleanUp();
            ColumnIndicator?.CleanUp();

            RightMarginAdornment = null;
            LineBreaksAdornment  = null;
            LineIndicator        = null;
            ColumnIndicator      = null;
        }
Example #2
0
        private void OnLayoutChanged(object sender, TextViewLayoutChangedEventArgs e)
        {
            if (!IsInitialized)
            {
                CleanUp();
                CreateAdornment();
                IsInitialized = true;
            }

            // HACK: 5.3. OnLayoutChanged. レイアウトの変更イベント
            RightMarginAdornment?.OnLayoutChanged(sender, e);
            LineBreaksAdornment?.OnLayoutChanged(sender, e);
            LineIndicator?.OnLayoutChanged(sender, e);
            ColumnIndicator?.OnLayoutChanged(sender, e);
        }
Example #3
0
 private void OnSelectionChanged(object sender, EventArgs e)
 {
     // HACK: 5.5. OnSelectionChanged. 選択変更のイベント
     LineIndicator?.OnSelectionChanged(sender, e);
     ColumnIndicator?.OnSelectionChanged(sender, e);
 }
Example #4
0
 private void OnPositionChanged(object sender, CaretPositionChangedEventArgs e)
 {
     // HACK: 5.2. OnPositionChanged. ポジションの変更イベント
     LineIndicator?.OnPositionChanged(sender, e);
     ColumnIndicator?.OnPositionChanged(sender, e);
 }