MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Set new format and colours for next text values.
/// </summary>
/// <param name="style">Format for new inserted text.</param>
/// <param name="fontColour">New font colour to be used.</param>
/// <param name="highlightColour">New highlight (text background) colour to be used.</param>
/// <returns>
/// New instance used to end formating change.
/// </returns>
/// <remarks>
/// Use the 'using' syntax or Dispose() function to encapsulate format change.
/// </remarks>
Set new format and colours for next text values.
Set new format and colours for next text values .
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Public user interface")]
    public VerySimpleRtfBuilder SetStyle(Styles style, Color fontColour, Color highlightColour)
    {
      this.rtf.Append('{');
      if (style != Styles.None)
      {
        ProcessStyle(style);
      }
      ProcessFontColour(fontColour);
      ProcessHighlightColour(highlightColour);
      this.rtf.Append(' ');
      return (GetChild(true, null, null));
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] public VerySimpleRtfBuilder SetStyle ( Styles style , Color fontColour , Color highlightColour ) { this . rtf . Append ( ' ' ) ; if ( style != Styles . None ) { ProcessStyle ( style ) ; } ProcessFontColour ( fontColour ) ; ProcessHighlightColour ( highlightColour ) ; this . rtf . Append ( ' ' ) ; return ( GetChild ( true , null , null ) ) ; }
Set new format and colours for next text values.
Set new format and colours for next text values .
New instance used to end formating change.
New instance used to end formating change .
style
Styles
Format for new inserted text.
Format for new inserted text .
fontColour
Color
New font colour to be used.
New font colour to be used .
highlightColour
Color
New highlight (text background) colour to be used.
New highlight ( text background ) colour to be used .
remarks
Use the 'using' syntax or Dispose() function to encapsulate format change.
Use the ' using ' syntax or Dispose () function to encapsulate format change .