Sdílet prostřednictvím


DocumentIntelligenceModelFactory.DocumentStyle Method

Definition

Initializes a new instance of DocumentStyle.

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

Parameters

isHandwritten
Nullable<Boolean>

Is content handwritten?.

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..

spans
IEnumerable<DocumentSpan>

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

confidence
Single

Confidence of correctly identifying the style.

Returns

A new DocumentStyle instance for mocking.

Applies to