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

    Show / Hide Table of Contents

    LengthUnitConverter Class

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

    Utility class used for converting values between various LengthUnit measurement units.

    • C#
    • VB.NET
    public static class LengthUnitConverter
    Public Module LengthUnitConverter
    Inheritance:
    System.Object
    LengthUnitConverter

    Methods

    Convert(Double, LengthUnit, LengthUnit)

    Converts the specified length from sourceUnit measurement unit to destinationUnit measurement unit.

    • C#
    • VB.NET
    public static double Convert(double length, LengthUnit sourceUnit, LengthUnit destinationUnit)
    Public Shared Function Convert(length As Double, sourceUnit As LengthUnit, destinationUnit As LengthUnit) As Double
    Parameters
    length
    System.Double

    The length that will be converted.

    sourceUnit
    LengthUnit

    The source measurement unit.

    destinationUnit
    LengthUnit

    The destination measurement unit.

    Returns
    System.Double

    The length expressed in destinationUnit measurement unit.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.