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


C# ScintillaControl.IndicatorFillRange方法代碼示例

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


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

示例1: AddHighlight

        /// <summary>
        /// 
        /// </summary>
        static public void AddHighlight(ScintillaControl sci, Int32 line, Int32 indicator, Int32 value)
        {
            Int32 start = sci.PositionFromLine(line);
            Int32 length = sci.LineLength(line);
			if (start < 0 || length < 1)
			{
				return;
			}
			// Remember previous EndStyled marker and restore it when we are done.
            Int32 es = sci.EndStyled;
			// Mask for style bits used for restore.
            Int32 mask = (1 << sci.StyleBits) - 1;
            Language lang = PluginBase.MainForm.SciConfig.GetLanguage(sci.ConfigurationLanguage);
			if (indicator == indicatorDebugCurrentLine)
			{
                sci.SetIndicFore(indicator, lang.editorstyle.DebugLineBack);
			}
			else if (indicator == indicatorDebugEnabledBreakpoint)
			{
				sci.SetIndicFore(indicator, lang.editorstyle.ErrorLineBack);
			}
			else if (indicator == indicatorDebugDisabledBreakpoint)
			{
				sci.SetIndicFore(indicator, lang.editorstyle.DisabledLineBack);
			}
			sci.SetIndicStyle(indicator, 7);
			sci.CurrentIndicator = indicator;
			sci.IndicatorValue = value;
			sci.IndicatorFillRange(start, length);
			sci.StartStyling(es, mask);
		}
開發者ID:ImaginationSydney,項目名稱:flashdevelop,代碼行數:34,代碼來源:ScintillaHelper.cs

示例2: AddHighlight

 /// <summary>
 /// 
 /// </summary>
 public static void AddHighlight(ScintillaControl sci, Int32 line, Int32 indicator, Int32 value)
 {
     if (sci == null) return;
     Int32 start = sci.PositionFromLine(line);
     Int32 length = sci.LineLength(line);
     if (start < 0 || length < 1) return;
     Int32 es = sci.EndStyled;
     Int32 mask = (1 << sci.StyleBits) - 1;
     Language lang = PluginBase.MainForm.SciConfig.GetLanguage(sci.ConfigurationLanguage);
     if (indicator == indicatorDebugCurrentLine)
     {
         sci.SetIndicFore(indicator, lang.editorstyle.DebugLineBack);
         sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
     }
     else if (indicator == indicatorDebugEnabledBreakpoint)
     {
         sci.SetIndicFore(indicator, lang.editorstyle.ErrorLineBack);
         sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
     }
     else if (indicator == indicatorDebugDisabledBreakpoint)
     {
         sci.SetIndicFore(indicator, lang.editorstyle.DisabledLineBack);
         sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
     }
     sci.SetIndicStyle(indicator, 7);
     sci.CurrentIndicator = indicator;
     sci.IndicatorValue = value;
     sci.IndicatorFillRange(start, length);
     sci.StartStyling(es, mask);
 }
開發者ID:ImaginationSydney,項目名稱:flashdevelop,代碼行數:33,代碼來源:ScintillaHelper.cs

示例3: AddHighlight

        /// <summary>
        /// 
        /// </summary>
        static public void AddHighlight(ScintillaControl sci, Int32 line, Int32 indicator, Int32 value)
        {
            Int32 start = sci.PositionFromLine(line);

            Int32 length = sci.LineLength(line);
			if (start < 0 || length < 1)
			{
				return;
			}

			// Remember previous EndStyled marker and restore it when we are done.
            Int32 es = sci.EndStyled;
			// Mask for style bits used for restore.
            Int32 mask = (1 << sci.StyleBits) - 1;

			if (indicator == indicatorDebugCurrentLine)
			{
				sci.SetIndicFore(indicator, DataConverter.ColorToInt32(PluginMain.settingObject.DebugLineColor));
			}
			else if (indicator == indicatorDebugEnabledBreakpoint)
			{
				sci.SetIndicFore(indicator, DataConverter.ColorToInt32(PluginMain.settingObject.BreakPointEnableLineColor));
			}
			else if (indicator == indicatorDebugDisabledBreakpoint)
			{
				sci.SetIndicFore(indicator, DataConverter.ColorToInt32(PluginMain.settingObject.BreakPointDisableLineColor));
			}

			sci.SetIndicStyle(indicator, /* (int)ScintillaNet.Enums.IndicatorStyle.RoundBox */ 7);
			sci.CurrentIndicator = indicator;
			sci.IndicatorValue = value;
			sci.IndicatorFillRange(start, length);
			sci.StartStyling(es, mask);
		}
開發者ID:heon21st,項目名稱:flashdevelop,代碼行數:37,代碼來源:ScintillaHelper.cs


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