次の方法で共有


DocumentAnalysisModelFactory.DocumentStyle メソッド

定義

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

パラメーター

isHandwritten
Nullable<Boolean>

コンテンツは手書きですか?

spans
IEnumerable<DocumentSpan>

スタイルが適用される連結コンテンツ内のテキスト要素の場所。

confidence
Single

スタイルを正しく識別する信頼度。

similarFontFamily
String

サポートされている一連のフォント ファミリの中から視覚的に最も類似したフォント。CSS 規則に従ったフォールバック フォント (例: 'Arial, sans-serif')。

fontStyle
Nullable<DocumentFontStyle>

フォント スタイル。

fontWeight
Nullable<DocumentFontWeight>

フォントの太さ。

color
String

16 進数形式の前景色 #rrggbb。

backgroundColor
String

16 進数形式の背景色 #rrggbb。

戻り値

モック作成用の新しい DocumentStyle インスタンス。

適用対象