ICSharpCode.TextEditor.TextArea.Refresh C# (CSharp) Method

Refresh() public method

public Refresh ( AbstractMargin margin ) : void
margin AbstractMargin
return void
		public void Refresh(AbstractMargin margin)
		{
			updateMargin = margin;
			Invalidate(updateMargin.DrawingPosition);
			Update();
			updateMargin = null;
		}
		

Usage Example

 void InsertString(ICSharpCode.TextEditor.TextArea textArea, int offset, string str)
 {
     textArea.Document.Insert(offset, str);
     //textArea.SelectionManager.SetSelection(new DefaultSelection(textArea.Document,
     //                                                            textArea.Document.OffsetToPosition(offset),
     //                                                            textArea.Document.OffsetToPosition(offset + str.Length)));
     textArea.Caret.Position = textArea.Document.OffsetToPosition(offset + str.Length);
     textArea.Refresh();
 }
All Usage Examples Of ICSharpCode.TextEditor.TextArea::Refresh