共用方式為


LengthUnit Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.ai.formrecognizer.models.LengthUnit

public enum LengthUnit
extends Enum<LengthUnit>

The unit used by the width, height and boundingBox properties. For images, the unit is "pixel". For PDF, the unit is "inch".

Fields

INCH

Enum value inch.

PIXEL

Enum value pixel.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String value)

public static LengthUnit fromString(String value)

Parses a serialized value to a LengthUnit instance.

Parameters

value
String
the serialized value to parse.

Returns

the parsed LengthUnit object, or null if unable to parse.

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static LengthUnit valueOf(String name)

Parameters

name
String

Returns

values()

public static LengthUnit[] values()

Returns

Applies to