コード例 #1
0
		public TextMarker(int offset, int length, TextMarkerType textMarkerType, Color color)
		{
			this.offset          = offset;
			this.length          = length;
			this.textMarkerType  = textMarkerType;
			this.color           = color;
		}
コード例 #2
0
 public TextMarker(int offset, int length, TextMarkerType textMarkerType, Color color)
 {
     if (length < 1) length = 1;
     this.offset          = offset;
     this.length          = length;
     TextMarkerType  = textMarkerType;
     Color           = color;
 }
コード例 #3
0
ファイル: TextMarker.cs プロジェクト: viticm/pap2
		public TextMarker(int offset, int length, TextMarkerType textMarkerType, Color color, Color foreColor)
		{
			this.offset          = offset;
			this.length          = length;
			this.textMarkerType  = textMarkerType;
			this.color           = color;
			this.foreColor       = foreColor;
			this.overrideForeColor = true;
		}
コード例 #4
0
 public TextMarker(TextMarkerService service, int startOffset, int length)
 {
     if (service == null)
         throw new ArgumentNullException("service");
     this.service = service;
     this.StartOffset = startOffset;
     this.Length = length;
     this.markerType = TextMarkerType.None;
 }
コード例 #5
0
 public TextMarker(int offset, int length, TextMarkerType textMarkerType, Color color, Color foreColor)
 {
     if (length < 1) length = 1;
     this.offset          = offset;
     this.length          = length;
     TextMarkerType  = textMarkerType;
     Color           = color;
     ForeColor       = foreColor;
     OverrideForeColor = true;
 }
コード例 #6
0
ファイル: TextMarker.cs プロジェクト: GodLesZ/svn-dump
		public TextMarker(int offset, int length, TextMarkerType textMarkerType) : this(offset, length, textMarkerType, Color.Red)
		{
		}
コード例 #7
0
 public static SourceCodeEditor selectTextWithColor(this SourceCodeEditor codeEditor, DefaultSelection selection, TextMarkerType textMarkerType, Color color)
 {
     if (selection.Length < 0)
     {
         "in SourceCodeEditor.selectTextWithColor selection.Length was <  0".error();
         return codeEditor;
     }
     return codeEditor.invokeOnThread(
         ()=>{
                 var newMarker = new TextMarker(
                     selection.Offset,
                     selection.Length,
                     textMarkerType, color);
                 codeEditor.document().MarkerStrategy.AddMarker(newMarker);
                 return codeEditor;
         });
 }
コード例 #8
0
 public static ascx_SourceCodeEditor selectTextWithColor(this ascx_SourceCodeEditor codeEditor, DefaultSelection selection, TextMarkerType textMarkerType, Color color)
 {
     if (selection.Length < 0)
     {
         "in ascx_SourceCodeEditor.selectTextWithColor selection.Length was <  0".error();
         return codeEditor;
     }
     //"offset: {0} : lenght {1}".format(selection.Offset, selection.Length).info();
     return (ascx_SourceCodeEditor)codeEditor.invokeOnThread(
     () =>
     {
         //"offset: {0} : lenght {1}".format(selection.Offset, selection.Length).info();
         var newMarker = new TextMarker(
                                 selection.Offset,
                                 selection.Length,
                                 textMarkerType, color);
         codeEditor.document().MarkerStrategy.AddMarker(newMarker);
         return codeEditor;
     });
 }