MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Set positions for tabulators from list of positions.
/// </summary>
/// <param name="tabPositions">List of tabulator positions (in local format value).</param>
/// <returns>
/// Current instance.
/// </returns>
/// <remarks>
/// Position of tabulators are set in local values. 568 = 1 cm.
/// </remarks>
Set positions for tabulators from list of positions.
Set positions for tabulators from list of positions .
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Public user interface")]
    public VerySimpleRtfBuilder SetTabs(params int[] tabPositions)
    {
      if ((tabPositions is null) || (tabPositions.Length < 1))
      {
        return (SetTabs());
      }
      this.rtf.Append("\\pard");
      foreach (int pos in tabPositions)
      {
        this.rtf.AppendFormat(CultureInfo.InvariantCulture, "\\tx{0}", pos);
      }
      this.rtf.Append(" ");
      return (this);
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] public VerySimpleRtfBuilder SetTabs ( params int [ ] tabPositions ) { if ( ( tabPositions is null ) || ( tabPositions . Length < 1 ) ) { return ( SetTabs ( ) ) ; } this . rtf . Append ( " \\ " ) ; foreach ( int pos in tabPositions ) { this . rtf . AppendFormat ( CultureInfo . InvariantCulture , " \\ " , pos ) ; } this . rtf . Append ( " " ) ; return ( this ) ; }
Set positions for tabulators from list of positions.
Set positions for tabulators from list of positions .
None
tabPositions
List of tabulator positions (in local format value).
List of tabulator positions ( in local format value ) .
remarks
Position of tabulators are set in local values.
Position of tabulators are set in local values .