public AlterTextSegmentArgs(ITextSegmentVisual textSegment, int lineIndex, int charCountDiff, int textColumnIndex) { this.TextSegment = textSegment; this.LineIndex = lineIndex; this.CharacterCountDifference = charCountDiff; this.TextColumnIndex = textColumnIndex; }
private void UpdateVisualInformationLine(int lineIndex, ITextSegmentVisual textSegment, int charDiff, TextSegmentVisualInfos infos) { var bounds = infos.GetSize(0); this.UpdateLineOverflow(textSegment, bounds.Width); var a = infos.GetLineCountVisual(0); var b = this.GetVisualInformation(lineIndex); var c = b.GetLineCountVisual(0); this._visualLineCount += a - c; this._textSegmentVisualInformations[lineIndex] = infos; if (Focused == false) { if (textSegment.Index <= this.SelectionStart) { this.SelectionStart += charDiff; } } }