Mono.TextEditor.TextViewMargin.TextViewMargin C# (CSharp) Method

TextViewMargin() public method

public TextViewMargin ( MonoTextEditor textEditor ) : System
textEditor MonoTextEditor
return System
		public TextViewMargin (MonoTextEditor textEditor)
		{
			if (textEditor == null)
				throw new ArgumentNullException ("textEditor");
			this.textEditor = textEditor;

			textEditor.Document.TextReplaced += HandleTextReplaced;
			base.cursor = xtermCursor;
			textEditor.HighlightSearchPatternChanged += TextEditor_HighlightSearchPatternChanged;
			textEditor.Document.LineChanged += TextEditorDocumentLineChanged;
			textEditor.GetTextEditorData ().SearchChanged += HandleSearchChanged;
			markerLayout = PangoUtil.CreateLayout (textEditor);
			defaultLayout = PangoUtil.CreateLayout (textEditor);

			textEditor.TextArea.FocusInEvent += HandleFocusInEvent;
			textEditor.TextArea.FocusOutEvent += HandleFocusOutEvent;
			textEditor.VScroll += HandleVAdjustmentValueChanged;
		}