Dela via


DocumentAnalysisModelFactory.DocumentLine Method

Definition

Initializes a new instance of DocumentLine.

public static Azure.AI.FormRecognizer.DocumentAnalysis.DocumentLine DocumentLine (string content = default, System.Collections.Generic.IReadOnlyList<System.Drawing.PointF> boundingPolygon = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> spans = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentWord> words = default);
static member DocumentLine : string * System.Collections.Generic.IReadOnlyList<System.Drawing.PointF> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentWord> -> Azure.AI.FormRecognizer.DocumentAnalysis.DocumentLine
Public Shared Function DocumentLine (Optional content As String = Nothing, Optional boundingPolygon As IReadOnlyList(Of PointF) = Nothing, Optional spans As IEnumerable(Of DocumentSpan) = Nothing, Optional words As IEnumerable(Of DocumentWord) = Nothing) As DocumentLine

Parameters

content
String

Concatenated content of the contained elements in reading order.

boundingPolygon
IReadOnlyList<PointF>

Bounding polygon of the line.

spans
IEnumerable<DocumentSpan>

Location of the line in the reading order concatenated content.

words
IEnumerable<DocumentWord>

The words that compose this line. Returned by the GetWords() method.

Returns

A new DocumentLine instance for mocking.

Applies to