Source/NFX/Media/PDF/Styling/PdfSize.cs
/// <summary>
/// Change unit of the size and recalculate height and width
/// </summary>
/// <param name="unit">New unit</param>
Change unit of the size and recalculate height and width
Change unit of the size and recalculate height and width
public PdfSize ChangeUnits(PdfUnit unit)
    {
      var ratio = Unit.Points / unit.Points;
      var result = new PdfSize(unit, Height * ratio, Width * ratio);
      return result;
    }
public PdfSize ChangeUnits ( PdfUnit unit ) { var ratio = Unit . Points / unit . Points ; var result = new PdfSize ( unit , Height * ratio , Width * ratio ) ; return result ; }
Change unit of the size and recalculate height and width
Change unit of the size and recalculate height and width
unit
PdfUnit
None