MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Set new font name for new text values.
/// </summary>
/// <param name="fontName">Name of the font.</param>
/// <param name="halfPointsSize">New size of font in half-points.</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 font name for new text values.
Set new font name for new text values .
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Public user interface")]
    public VerySimpleRtfBuilder SetFont(string fontName, int halfPointsSize)
    {
      this.rtf.Append('{');
      ProcessFontName(fontName);
      ProcessFontSize(halfPointsSize);
      this.rtf.Append(' ');
      return (GetChild(true, fontName, halfPointsSize));
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] public VerySimpleRtfBuilder SetFont ( string fontName , int halfPointsSize ) { this . rtf . Append ( ' ' ) ; ProcessFontName ( fontName ) ; ProcessFontSize ( halfPointsSize ) ; this . rtf . Append ( ' ' ) ; return ( GetChild ( true , fontName , halfPointsSize ) ) ; }
Set new font name for new text values.
Set new font name for new text values .
New instance used to end formating change.
New instance used to end formating change .
fontName
string
Name of the font.
Name of the font .
halfPointsSize
int
New size of font in half-points.
New size of font in half - points .
remarks
Use the 'using' syntax or Dispose() function to encapsulate format change.
Use the ' using ' syntax or Dispose () function to encapsulate format change .