PDFReaderControls.NET Professional Type Reference

Unit Structure

Unit is used to convert a wide variety of units to points, which is the unit used in PDF.

For a list of all members of this type, see Unit Members.

System.Object
   System.ValueType
      TallComponents.PDF.Unit

public struct Unit

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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.

Example

C#

   myTable.PreferredWidth = Unit.Parse("50mm");
   myFragment.FontSize = Unit.Parse("0.5in");

VB.NET

   myTable.PreferredWidth = Unit.Parse("50mm")
   myFragment.FontSize = Unit.Parse("0.5in")

Requirements

Namespace: TallComponents.PDF

Assembly: TallComponents.PDF.ReaderControls (in TallComponents.PDF.ReaderControls.dll)

See Also

Unit Members | TallComponents.PDF Namespace