GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    LengthUnit Enum

    Namespace:
    GemBox.Spreadsheet
    Assembly:
    GemBox.Spreadsheet.dll

    Represents the measurement unit for measuring length or distance.

    • C#
    • VB.NET
    public enum LengthUnit
    Public Enum LengthUnit
    Remarks

    To convert values between various LengthUnits, use LengthUnitConverter.

    Fields

    Centimeter

    Centimeter (2.54 centimeters = 1 Inch).

    CharacterWidth

    Character width is the maximum digit width of the numbers 0, 1, 2, ..., 9 as rendered in the Normal style's font (see MaximumDigitWidth).

    The unit of the column width in MS Excel user interface is CharacterWidth.

    The value in CharacterWidth unit always contains at most 2 decimal digits.

    note

    The CharacterWidth should not be used in Convert(Double, LengthUnit, LengthUnit) method. Instead, it should be used in GetWidth(LengthUnit), SetWidth(Double, LengthUnit), GetDefaultColumnWidth(LengthUnit), and SetDefaultColumnWidth(Double, LengthUnit) methods.

    DevicePixel

    Device-dependent or physical pixel (Dpi device-dependent pixels = 1 inch).

    Emu

    English Metric Unit (914 400 EMUs = 1 Inch, 360 000 EMUs = 1 Centimeter, 12 700 EMUs = 1 Point).

    Inch

    Inch (1 inch = 2.54 Centimeters).

    Millimeter

    Millimeter (10 millimeters = 1 Centimeter).

    Pixel

    Device-independent or logical pixel (96 device-independent pixels = 1 inch).

    Point

    Point (72 points = 1 Inch).

    Twip

    Twentieth of a point (20 twips = 1 Point).

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.