你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DocumentIntelligenceModelFactory.DocumentLine Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of DocumentLine.
public static Azure.AI.DocumentIntelligence.DocumentLine DocumentLine (string content = default, System.Collections.Generic.IEnumerable<float> polygon = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentSpan> spans = default);
static member DocumentLine : string * seq<single> * seq<Azure.AI.DocumentIntelligence.DocumentSpan> -> Azure.AI.DocumentIntelligence.DocumentLine
Public Shared Function DocumentLine (Optional content As String = Nothing, Optional polygon As IEnumerable(Of Single) = Nothing, Optional spans As IEnumerable(Of DocumentSpan) = Nothing) As DocumentLine
Parameters
- content
- String
Concatenated content of the contained elements in reading order.
- polygon
- IEnumerable<Single>
Bounding polygon of the line, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.
- spans
- IEnumerable<DocumentSpan>
Location of the line in the reading order concatenated content.
Returns
A new DocumentLine instance for mocking.