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


C# ScintillaControl.MarkerGet方法代碼示例

本文整理匯總了C#中ScintillaNet.ScintillaControl.MarkerGet方法的典型用法代碼示例。如果您正苦於以下問題:C# ScintillaControl.MarkerGet方法的具體用法?C# ScintillaControl.MarkerGet怎麽用?C# ScintillaControl.MarkerGet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ScintillaNet.ScintillaControl的用法示例。


在下文中一共展示了ScintillaControl.MarkerGet方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: PreviousMarker

 /// <summary>
 /// Moves the cursor to the previous marker
 /// </summary>
 public static void PreviousMarker(ScintillaControl sci, Int32 marker, Int32 line)
 {
     Int32 prev = 0; Int32 count = 0;
     Int32 lineMask = sci.MarkerGet(line);
     if ((lineMask & GetMarkerMask(marker)) != 0)
     {
         prev = sci.MarkerPrevious(line - 1, GetMarkerMask(marker));
         if (prev != -1) sci.GotoLine(prev);
         else
         {
             count = sci.LineCount;
             prev = sci.MarkerPrevious(count, GetMarkerMask(marker));
             if (prev != -1) sci.GotoLine(prev);
         }
     }
     else
     {
         prev = sci.MarkerPrevious(line, GetMarkerMask(marker));
         if (prev != -1) sci.GotoLine(prev);
         else
         {
             count = sci.LineCount;
             prev = sci.MarkerPrevious(count, GetMarkerMask(marker));
             if (prev != -1) sci.GotoLine(prev);
         }
     }
 }
開發者ID:heon21st,項目名稱:flashdevelop,代碼行數:30,代碼來源:MarkerManager.cs

示例2: ToggleMarker

 /// <summary>
 /// Adds or removes a marker
 /// </summary>
 public static void ToggleMarker(ScintillaControl sci, Int32 marker, Int32 line)
 {
     Int32 lineMask = sci.MarkerGet(line);
     if ((lineMask & GetMarkerMask(marker)) == 0) sci.MarkerAdd(line, marker);
     else sci.MarkerDelete(line, marker);
     UITools.Manager.MarkerChanged(sci, line);
 }
開發者ID:heon21st,項目名稱:flashdevelop,代碼行數:10,代碼來源:MarkerManager.cs

示例3: 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

示例4: 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

示例5: IsMarkerSet

 static public Boolean IsMarkerSet(ScintillaControl sci, Int32 marker, Int32 line)
 {
     return (sci.MarkerGet(line) & GetMarkerMask(marker)) != 0;
 }
開發者ID:ImaginationSydney,項目名稱:flashdevelop,代碼行數:4,代碼來源:ScintillaHelper.cs

示例6: PreviousMarker

 /// <summary>
 /// Moves the cursor to the previous marker
 /// </summary>
 public static void PreviousMarker(ScintillaControl sci, Int32 marker, Int32 line)
 {
     Int32 prev = 0; Int32 count = 0;
     Int32 lineMask = sci.MarkerGet(line);
     if ((lineMask & GetMarkerMask(marker)) != 0)
     {
         prev = sci.MarkerPrevious(line - 1, GetMarkerMask(marker));
         if (prev != -1)
         {
             sci.EnsureVisibleEnforcePolicy(prev);
             sci.GotoLineIndent(prev);
         }
         else
         {
             count = sci.LineCount;
             prev = sci.MarkerPrevious(count, GetMarkerMask(marker));
             if (prev != -1)
             {
                 sci.EnsureVisibleEnforcePolicy(prev);
                 sci.GotoLineIndent(prev);
             }
         }
     }
     else
     {
         prev = sci.MarkerPrevious(line, GetMarkerMask(marker));
         if (prev != -1)
         {
             sci.EnsureVisibleEnforcePolicy(prev);
             sci.GotoLineIndent(prev);
         }
         else
         {
             count = sci.LineCount;
             prev = sci.MarkerPrevious(count, GetMarkerMask(marker));
             if (prev != -1)
             {
                 sci.EnsureVisibleEnforcePolicy(prev);
                 sci.GotoLineIndent(prev);
             }
         }
     }
 }
開發者ID:xeronith,項目名稱:flashdevelop,代碼行數:46,代碼來源:MarkerManager.cs

示例7: HasMarker

 /// <summary>
 /// Whether a certain line has a certain marker.
 /// </summary>
 public static bool HasMarker(ScintillaControl sci, Int32 marker, Int32 line)
 {
     Int32 lineMask = sci.MarkerGet(line);
     return (lineMask & GetMarkerMask(marker)) > 0;
 }
開發者ID:xeronith,項目名稱:flashdevelop,代碼行數:8,代碼來源:MarkerManager.cs

示例8: 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;
     for (Int32 i = 0; i < sci.LineCount; i++)
     {
         if (!sci.FoldExpanded(i)) so.FoldedLines.Add(i);
         if ((sci.MarkerGet(i) & (1 << 0)) != 0)
         {
             so.BookmarkedLines.Add(i);
         }
     }
     return so;
 }
開發者ID:heon21st,項目名稱:flashdevelop,代碼行數:19,代碼來源:FileStateManager.cs


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