當前位置: 首頁>>代碼示例>>C#>>正文


C# TextEditor.LineEventArgs類代碼示例

本文整理匯總了C#中Mono.TextEditor.LineEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# LineEventArgs類的具體用法?C# LineEventArgs怎麽用?C# LineEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


LineEventArgs類屬於Mono.TextEditor命名空間,在下文中一共展示了LineEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: UpdateWidth

		void UpdateWidth (object sender, LineEventArgs args)
		{
			int currentLineCountLog10 = (int)System.Math.Log10 (editor.Document.LineCount);
			if (oldLineCountLog10 != currentLineCountLog10) {
				CalculateWidth ();
				oldLineCountLog10 = currentLineCountLog10;
				editor.Document.CommitUpdateAll ();
			}
		}
開發者ID:nieve,項目名稱:monodevelop,代碼行數:9,代碼來源:GutterMargin.cs

示例2: HandleLineInserted

		void HandleLineInserted (object sender, LineEventArgs e)
		{
			if (lineStates == null) 
				return;
			try {
				lineStates.Insert(e.Line.LineNumber, new LineChangeInfo (Mono.TextEditor.TextDocument.LineState.Dirty));
			} catch (Exception ex) {
				Console.WriteLine ("error while DiffTracker.HandleLineInserted:" + ex);
			}
		}
開發者ID:FreeBSD-DotNet,項目名稱:monodevelop,代碼行數:10,代碼來源:DiffTracker.cs

示例3: HandleLineRemoved

		void HandleLineRemoved (object sender, LineEventArgs e)
		{
			if (lineStates == null) 
				return;
			try {

				lineStates.RemoveAt (e.LineNumber);
			} catch (Exception ex) {
				Console.WriteLine ("error while DiffTracker.HandleLineRemoved:" + ex);
			}
		}
開發者ID:FreeBSD-DotNet,項目名稱:monodevelop,代碼行數:11,代碼來源:DiffTracker.cs

示例4: HandleDocLineChanged

		void HandleDocLineChanged (object sender, LineEventArgs e)
		{
			e.Line.WasChanged = true;
		}
開發者ID:hduregger,項目名稱:monodevelop,代碼行數:4,代碼來源:TextEditorData.cs

示例5: SplitterLineSegmentTreeLineChanged

		void SplitterLineSegmentTreeLineChanged (object sender, LineEventArgs e)
		{
			if (LineChanged != null)
				LineChanged (this, e);
		}
開發者ID:telebovich,項目名稱:monodevelop,代碼行數:5,代碼來源:TextDocument.cs

示例6: HandleSplitterLineSegmentTreeLineRemoved

		void HandleSplitterLineSegmentTreeLineRemoved (object sender, LineEventArgs e)
		{
			foreach (TextLineMarker marker in e.Line.Markers) {
				if (marker is IExtendingTextLineMarker) {
					lock (extendingTextMarkers) {
						HeightChanged = true;
						extendingTextMarkers.Remove (marker);
					}
					UnRegisterVirtualTextMarker ((IExtendingTextLineMarker)marker);
				}
			}
		}
開發者ID:telebovich,項目名稱:monodevelop,代碼行數:12,代碼來源:TextDocument.cs

示例7: HandleLineRemoved

		void HandleLineRemoved (object sender, LineEventArgs e)
		{
			Rebuild ();
			OnLineUpdateFrom (new HeightChangedEventArgs (e.Line.LineNumber - 1));
			//RemoveLine (e.Line.LineNumber);
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:6,代碼來源:HeightTree.cs

示例8: OnHoveredLineChanged

		protected virtual void OnHoveredLineChanged (LineEventArgs e)
		{
			EventHandler<LineEventArgs> handler = this.HoveredLineChanged;
			if (handler != null)
				handler (this, e);
		}
開發者ID:OnorioCatenacci,項目名稱:monodevelop,代碼行數:6,代碼來源:TextViewMargin.cs

示例9: EditorDocumentLineChanged

		/// <summary>
		/// Marks a line as locally modified
		/// </summary>
		private void EditorDocumentLineChanged (object sender, LineEventArgs e)
		{
			int  startLine = editor.Document.OffsetToLineNumber (e.Line.Offset),
			     endLine = editor.Document.OffsetToLineNumber (e.Line.EndOffset);
			
			if (startLine == endLine) {
				SetAnnotation (startLine, locallyModified);
			}
			for (int i=startLine; i<endLine; ++i) {
				SetAnnotation (i, locallyModified);
			}
		}
開發者ID:transformersprimeabcxyz,項目名稱:monodevelop-1,代碼行數:15,代碼來源:AnnotateView.cs

示例10: HandleLineRemoved

		void HandleLineRemoved (object sender, LineEventArgs e)
		{
			RemoveLine (e.Line.LineNumber);
		}
開發者ID:slodge,項目名稱:monodevelop,代碼行數:4,代碼來源:HeightTree.cs

示例11: HandleLineRemoved

		void HandleLineRemoved (object sender, LineEventArgs e)
		{
			RemoveLine (editor.OffsetToLineNumber (e.Line.Offset));
		}
開發者ID:nocache,項目名稱:monodevelop,代碼行數:4,代碼來源:HeightTree.cs

示例12: HandleLineInserted

		void HandleLineInserted (object sender, LineEventArgs e)
		{
			InsertLine (editor.OffsetToLineNumber (e.Line.Offset));
		}
開發者ID:nocache,項目名稱:monodevelop,代碼行數:4,代碼來源:HeightTree.cs

示例13: OnLineInserted

		protected virtual void OnLineInserted (LineEventArgs e)
		{
			EventHandler<LineEventArgs> handler = this.LineInserted;
			if (handler != null)
				handler (this, e);
		}
開發者ID:transformersprimeabcxyz,項目名稱:monodevelop-1,代碼行數:6,代碼來源:LineSegmentTree.cs

示例14: HandleLineChanged

		void HandleLineChanged (object sender, LineEventArgs e)
		{
			var lineNumber = e.Line.LineNumber;
			try {
				if (lineStates [lineNumber].state == Mono.TextEditor.TextDocument.LineState.Dirty)
					return;
				lineStates [lineNumber] = new LineChangeInfo (Mono.TextEditor.TextDocument.LineState.Dirty);
				if (trackDocument != null)
					trackDocument.CommitLineUpdate (lineNumber); 
			} catch (Exception ex) {
				Console.WriteLine ("error while DiffTracker.HandleLineChanged:" + ex);
			}
		}
開發者ID:FreeBSD-DotNet,項目名稱:monodevelop,代碼行數:13,代碼來源:DiffTracker.cs

示例15: HandleDocumentsplitterhandleLineInserted

		void HandleDocumentsplitterhandleLineInserted (object sender, LineEventArgs e)
		{
			heightTree.InsertLine (OffsetToLineNumber (e.Line.Offset));
		}
開發者ID:hduregger,項目名稱:monodevelop,代碼行數:4,代碼來源:TextEditorData.cs


注:本文中的Mono.TextEditor.LineEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。