private void CleanUp() { // HACK: 5.7. CleanUp RightMarginAdornment?.CleanUp(); LineBreaksAdornment?.CleanUp(); LineIndicator?.CleanUp(); ColumnIndicator?.CleanUp(); RightMarginAdornment = null; LineBreaksAdornment = null; LineIndicator = null; ColumnIndicator = null; }
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); }
private void OnSelectionChanged(object sender, EventArgs e) { // HACK: 5.5. OnSelectionChanged. 選択変更のイベント LineIndicator?.OnSelectionChanged(sender, e); ColumnIndicator?.OnSelectionChanged(sender, e); }
private void OnPositionChanged(object sender, CaretPositionChangedEventArgs e) { // HACK: 5.2. OnPositionChanged. ポジションの変更イベント LineIndicator?.OnPositionChanged(sender, e); ColumnIndicator?.OnPositionChanged(sender, e); }