MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Set positions for tabulators from list of positions.
/// </summary>
/// <param name="tabPositions">List of tabulator positions (in cm).</param>
/// <returns>
/// Current instance.
/// </returns>
/// <remarks>
/// Position of tabulators are set in cm (not pixels, points nor inch).
/// </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 float[] tabPositions)
    {
      if ((tabPositions is null) || (tabPositions.Length < 1))
      {
        return (SetTabs());
      }
      int[] tabIntPos = new int[tabPositions.Length];
      for (int i = 0; i < tabPositions.Length; i++)
      {
        tabIntPos[i] = (int)(tabPositions[i] * 568);
      }
      return (SetTabs(tabIntPos));
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] public VerySimpleRtfBuilder SetTabs ( params float [ ] tabPositions ) { if ( ( tabPositions is null ) || ( tabPositions . Length < 1 ) ) { return ( SetTabs ( ) ) ; } int [ ] tabIntPos = new int [ tabPositions . Length ] ; for ( int i = 0 ; i < tabPositions . Length ; i ++ ) { tabIntPos [ i ] = ( int ) ( tabPositions [ i ] * 568 ) ; } return ( SetTabs ( tabIntPos ) ) ; }
Set positions for tabulators from list of positions.
Set positions for tabulators from list of positions .
None
tabPositions
List of tabulator positions (in cm).
List of tabulator positions ( in cm ) .
remarks
Position of tabulators are set in cm (not pixels, points nor inch).
Position of tabulators are set in cm ( not pixels points nor inch ) .