MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Insert font size command to RTF string.
/// </summary>
/// <param name="halfPointsSize">New size of font in half-points.</param>
Insert font size command to RTF string.
Insert font size command to RTF string .
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Internal function")]
    private void ProcessFontSize(int halfPointsSize)
    {
      if ((halfPointsSize < MinimalFontSize) || (halfPointsSize > MaximalFontSize))
      {
        throw new ArgumentOutOfRangeException(nameof(halfPointsSize));
      }
      this.rtf.AppendFormat(@"\fs{0}", halfPointsSize);
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] private void ProcessFontSize ( int halfPointsSize ) { if ( ( halfPointsSize < MinimalFontSize ) || ( halfPointsSize > MaximalFontSize ) ) { throw new ArgumentOutOfRangeException ( nameof ( halfPointsSize ) ) ; } this . rtf . AppendFormat ( @"\fs{0}" , halfPointsSize ) ; }
Insert font size command to RTF string.
Insert font size command to RTF string .
halfPointsSize
int
New size of font in half-points.
New size of font in half - points .