Skip to content

Conversion of points to another length #1573

@SparkoUK

Description

@SparkoUK

The problem seems to be there are two Measurements with the pt value DtpPoint and PrinterPoint so when a point measurement like 10pt is parsed it fails as the code thinks it matches two items.

string value="10pt";

IQuantity quantity = Quantity.From(0, LengthUnit.Centimeter);

if (Quantity.TryParse(typeof(Length), value, out quantity) == false)
{
	Console.WriteLine ("Failed");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions