当前位置: 首页>>代码示例>>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;未经允许,请勿转载。