Appearance
TallComponents.UnoPdf.Client
TallComponents.UnoPdf.Client.Models.Pdf
UnitModel Class
Unit is used to convert a wide variety of units to points, which is the
unit used in PDF.
csharp
public class UnitModel
Inheritance System.Object 🡒 UnitModel
Example
C#
csharp
myTable.PreferredWidth = Unit.Parse("50mm");
csharp
myFragment.FontSize = Unit.Parse("0.5in");
VB.NET
csharp
myTable.PreferredWidth = Unit.Parse("50mm")
csharp
myFragment.FontSize = Unit.Parse("0.5in")
Remarks
A point in PDF is exactly 1/72 inch. This is also known as a PostScript point.
This class converts all units to PostScript points.
Properties | |
---|---|
IsRelative | This Unit is a relative value. True if this Unit is a percentage. |
Points | Return the value of this Unit in points. |