MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Convert value from millimeters to twips.
/// </summary>
/// <param name="value">Source value in millimeters.</param>
/// <returns>
/// Value in twips.
/// </returns>
Convert value from millimeters to twips.
Convert value from millimeters to twips .
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Internal function")]
    private static int ConvertMillimeterToTwips(int value)
    {
      if ((value > short.MaxValue) || (value < short.MinValue))
      {
        throw new ArgumentOutOfRangeException(nameof(value));
      }
      value *= 567;
      if ((value % 10) >= 5)
      {
        value += 10;
      }
      value /= 10;
      return (value);
    }
[ SuppressMessage ( " " , " " , Justification = " " ) ] private static int ConvertMillimeterToTwips ( int value ) { if ( ( value > short . MaxValue ) || ( value < short . MinValue ) ) { throw new ArgumentOutOfRangeException ( nameof ( value ) ) ; } value *= 567 ; if ( ( value % 10 ) >= 5 ) { value += 10 ; } value /= 10 ; return ( value ) ; }
Convert value from millimeters to twips.
Convert value from millimeters to twips .
Value in twips.
Value in twips .
value
int
Source value in millimeters.
Source value in millimeters .