Пример #1
0
        /// <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);
        }
Пример #2
0
 internal MarkupService(IHtmlEditor editor)
 {
     this.editor = editor;
     ms          = (Interop.IMarkupServices)editor.GetActiveDocument(false);
     ms2         = (Interop.IMarkupServices2)editor.GetActiveDocument(false);
 }