/// <summary> /// <inheritdoc cref="Rule.Rule"/> /// </summary> /// <param name="pattern"><inheritdoc cref="Pattern"/></param> /// <param name="ignoreCase"><inheritdoc cref="IgnoreCase"/></param> /// <param name="isRegex"><inheritdoc cref="IsRegex"/></param> /// <param name="bold"><inheritdoc cref="VisualCue.Bold"/></param> /// <param name="italic"><inheritdoc cref="VisualCue.Italic"/></param> /// <param name="underline"><inheritdoc cref="VisualCue.Underline"/></param> /// <param name="strikeout"><inheritdoc cref="VisualCue.Strikeout"/></param> /// <param name="foreGround"><inheritdoc cref="VisualCue.ForeGround"/></param> /// <param name="backGround"><inheritdoc cref="VisualCue.BackGround"/></param> /// <param name="displayFont"><inheritdoc cref="VisualCue.DisplayFont"/></param> public Rule(string pattern, bool ignoreCase, bool isRegex, bool bold, bool italic, bool underline, bool strikeout, Color foreGround, Color backGround, Font displayFont) : this(pattern, ignoreCase, isRegex) { Decoration = new VisualCue(bold, italic, underline, strikeout, foreGround, backGround, displayFont); }
/// <summary> /// Static constructor for <see cref="VisualCue"/>; Initializes <see cref="_VisCueForUnDecorated"/> with <see cref="SystemFonts.DefaultFont"/> /// </summary> static VisualCue() { DefaultDecoration = new VisualCue(false, false, false, false, SystemColors.ControlText, SystemColors.Control, SystemFonts.DefaultFont); }