Mono.TextEditor.Highlighting.SyntaxModeService.StartUpdate C# (CSharp) Method

StartUpdate() public static method

public static StartUpdate ( TextDocument doc, Mono.TextEditor.Highlighting.SyntaxMode mode, int startOffset, int endOffset ) : void
doc TextDocument
mode Mono.TextEditor.Highlighting.SyntaxMode
startOffset int
endOffset int
return void
		public static void StartUpdate (TextDocument doc, SyntaxMode mode, int startOffset, int endOffset)
		{
			lock (updateQueue) {
				updateQueue.Enqueue (new UpdateWorker (doc, mode, startOffset, endOffset));
			}
			queueSignal.Set ();
		}
		

Usage Example

Example #1
0
 void HandleTextReplaced(object sender, DocumentChangeEventArgs e)
 {
     if (doc == null || doc.SuppressHighlightUpdate || doc.CurrentAtomicUndoOperationType == OperationType.Format)
     {
         return;
     }
     SyntaxModeService.StartUpdate(doc, this, e.Offset, e.Offset + e.InsertionLength);
 }
All Usage Examples Of Mono.TextEditor.Highlighting.SyntaxModeService::StartUpdate