/// <summary> /// Retrieves and resets the dirty range associated with the current registration. /// </summary> /// <remarks> /// Version Information: This method is not support in NetRix Standard. /// </remarks> /// <returns>Returns an object which allows flexible access to the range.</returns> public ITextSelector GetDirtyRange() { TextSelector ts = new TextSelector(editor); Interop.IMarkupServices ims = (Interop.IMarkupServices)editor.GetActiveDocument(false); Interop.IMarkupPointer pStart; Interop.IMarkupPointer pEnd; ims.CreateMarkupPointer(out pStart); ims.CreateMarkupPointer(out pEnd); mc2.GetAndClearDirtyRange(cookie, pStart, pEnd); ts.MovePointers(pStart, pEnd); return(ts); }
public void GetAndClearDirtyRange(uint dwCookie, MarkupPointer pointerBegin, MarkupPointer pointerEnd) { Interop.IMarkupPointer pIPointerBegin = pointerBegin.Native; Interop.IMarkupPointer pIPointerEnd = pointerEnd.Native; mc.GetAndClearDirtyRange(dwCookie, pIPointerBegin, pIPointerEnd); }