< Summary

Class:Microsoft.Azure.CognitiveServices.FormRecognizer.Models.Line
Assembly:Microsoft.Azure.CognitiveServices.Vision.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\FormRecognizer\src\Generated\Models\Line.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:70
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_BoundingBox()-0%100%
get_Text()-0%100%
get_Words()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\FormRecognizer\src\Generated\Models\Line.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.FormRecognizer.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// An object representing a recognized text line.
 20    /// </summary>
 21    public partial class Line
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the Line class.
 25        /// </summary>
 026        public Line()
 27        {
 28            CustomInit();
 029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the Line class.
 33        /// </summary>
 34        /// <param name="boundingBox">Bounding box of a recognized
 35        /// line.</param>
 36        /// <param name="text">The text content of the line.</param>
 37        /// <param name="words">List of words in the text line.</param>
 038        public Line(IList<int> boundingBox = default(IList<int>), string text = default(string), IList<Word> words = def
 39        {
 040            BoundingBox = boundingBox;
 041            Text = text;
 042            Words = words;
 43            CustomInit();
 044        }
 45
 46        /// <summary>
 47        /// An initialization method that performs custom operations like setting defaults
 48        /// </summary>
 49        partial void CustomInit();
 50
 51        /// <summary>
 52        /// Gets or sets bounding box of a recognized line.
 53        /// </summary>
 54        [JsonProperty(PropertyName = "boundingBox")]
 055        public IList<int> BoundingBox { get; set; }
 56
 57        /// <summary>
 58        /// Gets or sets the text content of the line.
 59        /// </summary>
 60        [JsonProperty(PropertyName = "text")]
 061        public string Text { get; set; }
 62
 63        /// <summary>
 64        /// Gets or sets list of words in the text line.
 65        /// </summary>
 66        [JsonProperty(PropertyName = "words")]
 067        public IList<Word> Words { get; set; }
 68
 69    }
 70}