Dela via


DocumentAnalysisModelFactory.DocumentStyle Method

Definition

Initializes a new instance of DocumentStyle.

public static Azure.AI.FormRecognizer.DocumentAnalysis.DocumentStyle DocumentStyle (bool? isHandwritten = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> spans = default, float confidence = 0, string similarFontFamily = default, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentFontStyle? fontStyle = default, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentFontWeight? fontWeight = default, string color = default, string backgroundColor = default);
static member DocumentStyle : Nullable<bool> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> * single * string * Nullable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentFontStyle> * Nullable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentFontWeight> * string * string -> Azure.AI.FormRecognizer.DocumentAnalysis.DocumentStyle
Public Shared Function DocumentStyle (Optional isHandwritten As Nullable(Of Boolean) = Nothing, Optional spans As IEnumerable(Of DocumentSpan) = Nothing, Optional confidence As Single = 0, Optional similarFontFamily As String = Nothing, Optional fontStyle As Nullable(Of DocumentFontStyle) = Nothing, Optional fontWeight As Nullable(Of DocumentFontWeight) = Nothing, Optional color As String = Nothing, Optional backgroundColor As String = Nothing) As DocumentStyle

Parameters

isHandwritten
Nullable<Boolean>

Is content handwritten?.

spans
IEnumerable<DocumentSpan>

Location of the text elements in the concatenated content the style applies to.

confidence
Single

Confidence of correctly identifying the style.

similarFontFamily
String

Visually most similar font from among the set of supported font families, with fallback fonts following CSS convention (ex. 'Arial, sans-serif').

fontStyle
Nullable<DocumentFontStyle>

Font style.

fontWeight
Nullable<DocumentFontWeight>

Font weight.

color
String

Foreground color in #rrggbb hexadecimal format.

backgroundColor
String

Background color in #rrggbb hexadecimal format.

Returns

A new DocumentStyle instance for mocking.

Applies to