本文整理汇总了C#中Mono.TextEditor.LineEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# LineEventArgs类的具体用法?C# LineEventArgs怎么用?C# LineEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LineEventArgs类属于Mono.TextEditor命名空间,在下文中一共展示了LineEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: HandleLineChanged
void HandleLineChanged (object sender, LineEventArgs e)
{
UpdateBreakpoints ();
UpdateWidgetPositions ();
if (messageBubbleCache != null && messageBubbleCache.RemoveLine (e.Line)) {
MessageBubbleTextMarker marker = currentErrorMarkers.FirstOrDefault (m => m.LineSegment == e.Line);
if (marker != null) {
widget.TextEditor.TextViewMargin.RemoveCachedLine (e.Line);
// ensure that the line cache is renewed
marker.GetLineHeight (widget.TextEditor);
}
}
}
开发者ID:telebovich,项目名称:monodevelop,代码行数:13,代码来源:SourceEditorView.cs
示例17: TextEditorDocumentLineChanged
void TextEditorDocumentLineChanged (object sender, LineEventArgs e)
{
RemoveCachedLine (e.Line);
}
开发者ID:OnorioCatenacci,项目名称:monodevelop,代码行数:4,代码来源:TextViewMargin.cs
示例18: HandleDocLineChanged
void HandleDocLineChanged (object sender, LineEventArgs e)
{
if (line == e.Line)
doc.RemoveMarker (this);
}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:5,代码来源:TextLineMarker.cs
示例19: HandleLineInserted
void HandleLineInserted (object sender, LineEventArgs e)
{
InsertLine (e.Line.LineNumber);
}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:4,代码来源:HeightTree.cs
示例20: OnLineRemoved
protected virtual void OnLineRemoved (LineEventArgs e)
{
EventHandler<LineEventArgs> handler = LineRemoved;
if (handler != null)
handler (this, e);
}
开发者ID:wickedshimmy,项目名称:monodevelop,代码行数:6,代码来源:LineSplitter.cs
注:本文中的Mono.TextEditor.LineEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论