MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Insert stat of alignment block to RTF string.
/// </summary>
/// <param name="alignment">Alignment type.</param>
Insert stat of alignment block to RTF string.
Insert stat of alignment block to RTF string .
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Internal function")]
    private void StartAlignmentBlock(Alignment alignment)
    {
      switch (alignment)
      {
      case Alignment.Left:
        this.rtf.Append(@"{\ql");
        break;
      case Alignment.Right:
        this.rtf.Append(@"{\qr");
        break;
      case Alignment.Center:
        this.rtf.Append(@"{\qc");
        break;
      case Alignment.Justify:
        this.rtf.Append(@"{\qj");
        break;
      default:
        throw new ArgumentOutOfRangeException(nameof(alignment));
      }
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] private void StartAlignmentBlock ( Alignment alignment ) { switch ( alignment ) { case Alignment . Left : this . rtf . Append ( @"{\ql" ) ; break ; case Alignment . Right : this . rtf . Append ( @"{\qr" ) ; break ; case Alignment . Center : this . rtf . Append ( @"{\qc" ) ; break ; case Alignment . Justify : this . rtf . Append ( @"{\qj" ) ; break ; default : throw new ArgumentOutOfRangeException ( nameof ( alignment ) ) ; } }
Insert stat of alignment block to RTF string.
Insert stat of alignment block to RTF string .
alignment
Alignment
None