コード例 #1
0
ファイル: HighLightStyle.cs プロジェクト: polytronicgr/netrix
 /// <summary>
 /// Instantiates a new render style object with a default underline style and lowest priority.
 /// </summary>
 /// <param name="lineColor">This parameter defines the line color used for this style.</param>
 /// <param name="underlineStyle">This parameter defines the underline style of this style.</param>
 public HighLightStyle(HighlightColor lineColor, UnderlineStyle underlineStyle) : this()
 {
     this.lineType            = LineType.Underline;
     this.lineColor           = lineColor;
     this.underlineStyle      = underlineStyle;
     this.textColor           = new HighlightColor(ColorType.Transparent);
     this.textBackgroundColor = new HighlightColor(ColorType.Transparent);
 }
コード例 #2
0
ファイル: HighLightStyle.cs プロジェクト: polytronicgr/netrix
 /// <summary>
 /// Instantiates a new render style object with a default line-through style and lowest priority.
 /// </summary>
 /// <param name="lineColor">This parameter defines the line color for this style.</param>
 /// <param name="lineThroughStyle">This parameter defines the the line through style.</param>
 public HighLightStyle(HighlightColor lineColor, LineThroughStyle lineThroughStyle) : this()
 {
     this.lineType            = LineType.LineThrough;
     this.lineColor           = lineColor;
     this.lineThroughStyle    = lineThroughStyle;
     this.textColor           = new HighlightColor(Color.Empty, ColorType.Inherit);
     this.textBackgroundColor = new HighlightColor(ColorType.Transparent);
 }
コード例 #3
0
ファイル: HighLightStyle.cs プロジェクト: polytronicgr/netrix
 /// <summary>
 /// Instantiates a new render style object with no values and lowest priority.
 /// </summary>
 public HighLightStyle()
 {
     IsDefault           = false;
     priority            = 0;
     textColor           = new HighlightColor(ColorType.Transparent);
     textBackgroundColor = new HighlightColor(ColorType.Transparent);
     lineColor           = new HighlightColor(Color.Red, ColorType.Color);
 }
コード例 #4
0
ファイル: HighLightStyle.cs プロジェクト: polytronicgr/netrix
 /// <summary>
 /// Instantiates a new render style object with a default text coloring.
 /// </summary>
 /// <param name="textColor">This parameter defines the fore color used for this style.</param>
 /// <param name="textBackgroundColor">This parameter defines the back color used for this style.</param>
 public HighLightStyle(HighlightColor textColor, HighlightColor textBackgroundColor) : this()
 {
     this.lineType            = LineType.None;
     this.textColor           = textColor;
     this.textBackgroundColor = textBackgroundColor;
 }