Class DocumentStyle
java.lang.Object
com.azure.ai.formrecognizer.documentanalysis.models.DocumentStyle
An object representing observed text styles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backgroundColor property: Background color in #rrggbb hexadecimal format..getColor()
Get the color property: Foreground color in #rrggbb hexadecimal format.float
Get the confidence property: Confidence of correctly identifying the style.Get the fontStyle property: Font style.Get the fontWeight property: Font weight.Get the similarFontFamily property: Visually most similar font from among the set of supported font families, with fallback fonts following CSS convention (ex.getSpans()
Get the spans property: Location of the text elements in the concatenated content the style applies to.Get the isHandwritten property: Is content handwritten?.
-
Constructor Details
-
DocumentStyle
public DocumentStyle()
-
-
Method Details
-
isHandwritten
Get the isHandwritten property: Is content handwritten?.- Returns:
- the isHandwritten value.
-
getSpans
Get the spans property: Location of the text elements in the concatenated content the style applies to.- Returns:
- the spans value.
-
getConfidence
public float getConfidence()Get the confidence property: Confidence of correctly identifying the style.- Returns:
- the confidence value.
-
getSimilarFontFamily
Get the similarFontFamily property: Visually most similar font from among the set of supported font families, with fallback fonts following CSS convention (ex. 'Arial, sans-serif').- Returns:
- the similarFontFamily value.
-
getFontStyle
Get the fontStyle property: Font style.- Returns:
- the fontStyle value.
-
getFontWeight
Get the fontWeight property: Font weight.- Returns:
- the fontWeight value.
-
getColor
Get the color property: Foreground color in #rrggbb hexadecimal format.- Returns:
- the color value.
-
getBackgroundColor
Get the backgroundColor property: Background color in #rrggbb hexadecimal format..- Returns:
- the backgroundColor value.
-