DocumentStyle Class
- java.
lang. Object - com.
azure. ai. formrecognizer. documentanalysis. models. DocumentStyle
- com.
public final class DocumentStyle
An object representing observed text styles.
Constructor Summary
Constructor | Description |
---|---|
DocumentStyle() |
Creates a Document |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getBackgroundColor()
Get the background |
String |
getColor()
Get the color property: Foreground color in #rrggbb hexadecimal format. |
float |
getConfidence()
Get the confidence property: Confidence of correctly identifying the style. |
Font |
getFontStyle()
Get the font |
Font |
getFontWeight()
Get the font |
String |
getSimilarFontFamily()
Get the similar |
List<Document |
getSpans()
Get the spans property: Location of the text elements in the concatenated content the style applies to. |
Boolean |
isHandwritten()
Get the is |
Methods inherited from java.lang.Object
Constructor Details
DocumentStyle
public DocumentStyle()
Creates a DocumentStyle object.
Method Details
getBackgroundColor
public String getBackgroundColor()
Get the backgroundColor property: Background color in #rrggbb hexadecimal format..
Returns:
getColor
public String getColor()
Get the color property: Foreground color in #rrggbb hexadecimal format.
Returns:
getConfidence
public float getConfidence()
Get the confidence property: Confidence of correctly identifying the style.
Returns:
getFontStyle
public FontStyle getFontStyle()
Get the fontStyle property: Font style.
Returns:
getFontWeight
public FontWeight getFontWeight()
Get the fontWeight property: Font weight.
Returns:
getSimilarFontFamily
public String 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:
getSpans
public List
Get the spans property: Location of the text elements in the concatenated content the style applies to.
Returns:
isHandwritten
public Boolean isHandwritten()
Get the isHandwritten property: Is content handwritten?.
Returns: