LengthUnit Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. documentintelligence. models. LengthUnit
- com.
- com.
public final class LengthUnit
extends ExpandableStringEnum<LengthUnit>
The unit used by the width, height, and polygon properties. For images, the unit is "pixel". For PDF, the unit is "inch".
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Length |
INCH
Length unit for PDF files. |
static final
Length |
PIXEL
Length unit for image files. |
Constructor Summary
Constructor | Description |
---|---|
LengthUnit() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Length |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Length |
fromString(String name)
Creates or finds a Length |
static
Collection<Length |
values()
Gets known Length |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
INCH
public static final LengthUnit INCH
Length unit for PDF files.
PIXEL
public static final LengthUnit PIXEL
Length unit for image files.
Constructor Details
LengthUnit
@Deprecated
public LengthUnit()
Deprecated
Creates a new instance of LengthUnit value.
Method Details
fromString
public static LengthUnit fromString(String name)
Creates or finds a LengthUnit from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known LengthUnit values.
Returns:
Applies to
Azure SDK for Java