// Token: 0x060067A8 RID: 26536 RVA: 0x001D0DFC File Offset: 0x001CEFFC
        internal DirtyTextRange(TextContainerChangeEventArgs change)
        {
            this.StartIndex         = change.ITextPosition.Offset;
            this.PositionsAdded     = 0;
            this.PositionsRemoved   = 0;
            this.FromHighlightLayer = false;
            switch (change.TextChange)
            {
            case TextChangeType.ContentAdded:
                this.PositionsAdded = change.Count;
                return;

            case TextChangeType.ContentRemoved:
                this.PositionsRemoved = change.Count;
                return;

            case TextChangeType.PropertyModified:
                this.PositionsAdded   = change.Count;
                this.PositionsRemoved = change.Count;
                return;

            default:
                return;
            }
        }
Ejemplo n.º 2
0
        // ------------------------------------------------------------------
        // Constructor
        //
        //      change - TextContainer change data.
        // ------------------------------------------------------------------
        internal DirtyTextRange(TextContainerChangeEventArgs change)
        {
            StartIndex = change.ITextPosition.Offset;

            PositionsAdded   = 0;
            PositionsRemoved = 0;

            switch (change.TextChange)
            {
            case TextChangeType.ContentAdded:
                PositionsAdded = change.Count;
                break;

            case TextChangeType.ContentRemoved:
                PositionsRemoved = change.Count;
                break;

            case TextChangeType.PropertyModified:
                PositionsAdded   = change.Count;
                PositionsRemoved = change.Count;
                break;
            }
        }