当前位置: 首页>>代码示例>>C#>>正文


C# ScintillaControl.MarkerNext方法代码示例

本文整理汇总了C#中ScintillaNet.ScintillaControl.MarkerNext方法的典型用法代码示例。如果您正苦于以下问题:C# ScintillaControl.MarkerNext方法的具体用法?C# ScintillaControl.MarkerNext怎么用?C# ScintillaControl.MarkerNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ScintillaNet.ScintillaControl的用法示例。


在下文中一共展示了ScintillaControl.MarkerNext方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NextMarker

 /// <summary>
 /// Moves the cursor to the next marker
 /// </summary>
 public static void NextMarker(ScintillaControl sci, Int32 marker, Int32 line)
 {
     Int32 next = 0;
     Int32 lineMask = sci.MarkerGet(line);
     if ((lineMask & GetMarkerMask(marker)) != 0)
     {
         next = sci.MarkerNext(line + 1, GetMarkerMask(marker));
         if (next != -1) sci.GotoLine(next);
         else
         {
             next = sci.MarkerNext(0, GetMarkerMask(marker));
             if (next != -1) sci.GotoLine(next);
         }
     }
     else
     {
         next = sci.MarkerNext(line, GetMarkerMask(marker));
         if (next != -1) sci.GotoLine(next);
         else
         {
             next = sci.MarkerNext(0, GetMarkerMask(marker));
             if (next != -1) sci.GotoLine(next);
         }
     }
 }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:28,代码来源:MarkerManager.cs

示例2: NextMarker

        /// <summary>
        /// Moves the cursor to the next marker
        /// </summary>
        public static void NextMarker(ScintillaControl sci, Int32 marker, Int32 line)
        {
            Int32 next = 0;
            Int32 lineMask = sci.MarkerGet(line);
            if ((lineMask & GetMarkerMask(marker)) != 0)
            {
                next = sci.MarkerNext(line + 1, GetMarkerMask(marker));
                if (next != -1)
                {
                    sci.EnsureVisibleEnforcePolicy(next);
                    sci.GotoLineIndent(next);
                }
                else
                {
                    next = sci.MarkerNext(0, GetMarkerMask(marker));
                    if (next != -1)
                    {

                        sci.EnsureVisibleEnforcePolicy(next);
                        sci.GotoLineIndent(next);
                    }
                }
            }
            else
            {
                next = sci.MarkerNext(line, GetMarkerMask(marker));
                if (next != -1)
                {
                    sci.EnsureVisibleEnforcePolicy(next);
                    sci.GotoLineIndent(next);
                }
                else
                {
                    next = sci.MarkerNext(0, GetMarkerMask(marker));
                    if (next != -1)
                    {
                        sci.EnsureVisibleEnforcePolicy(next);
                        sci.GotoLineIndent(next);
                    }
                }
            }
        }
开发者ID:xeronith,项目名称:flashdevelop,代码行数:45,代码来源:MarkerManager.cs

示例3: GetStateObject

 /// <summary>
 /// Gets the state object from a scintilla control
 /// </summary>
 private static StateObject GetStateObject(ScintillaControl sci)
 {
     StateObject so = new StateObject();
     so.LineCount = sci.LineCount;
     so.Position = sci.CurrentPos;
     so.FileName = sci.FileName;
     so.LineScroll = sci.FirstVisibleLine;
     for (Int32 line = 0;; line++)
     {
         Int32 lineNext = sci.ContractedFoldNext(line);
         if ((line < 0) || (lineNext < line)) break;
         line = lineNext;
         so.FoldedLines.Add(line);
     }
     Int32 lineBookmark = -1;
     while ((lineBookmark = sci.MarkerNext(lineBookmark + 1, 1 << 0)) >= 0)
     {
         so.BookmarkedLines.Add(lineBookmark);
     }
     return so;
 }
开发者ID:xeronith,项目名称:flashdevelop,代码行数:24,代码来源:FileStateManager.cs

示例4: GetMarkers

 public List<Int32> GetMarkers(ScintillaControl sci, int markerNum)
 {
     Int32 line = 0;
     List<Int32> markerLines = new List<Int32>();
     while (true)
     {
         if ((sci.MarkerNext(line, GetMarkerMask(markerNum)) == -1) || (line > sci.LineCount)) break;
         line = sci.MarkerNext(line, GetMarkerMask(markerNum));
         markerLines.Add(line);
         line++;
     }
     return markerLines;
 }
开发者ID:zpLin,项目名称:flashdevelop,代码行数:13,代码来源:BreakPointManager.cs

示例5: GetMarkers

 /// <summary>
 /// Return all the bookmark markers from a scintilla document
 /// </summary>
 private List<Int32> GetMarkers(ScintillaControl sci)
 {
     Int32 line = -1;
     List<Int32> markerLines = new List<Int32>();
     while (line < sci.LineCount)
     {
         line = sci.MarkerNext(line + 1, 1);
         if (line < 0) break;
         markerLines.Add(line);
     }
     return markerLines;
 }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:15,代码来源:PluginUI.cs


注:本文中的ScintillaNet.ScintillaControl.MarkerNext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。