-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
TextAppearance.cs
35 lines (30 loc) · 1.04 KB
/
TextAppearance.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
namespace Azure.AI.FormRecognizer.Models
{
[CodeGenModel("Appearance")]
public partial class TextAppearance
{
/// <summary>
/// Initializes a new instance of <see cref="TextAppearance"/>. This constructor
/// is intended to be used for mocking only.
/// </summary>
internal TextAppearance(TextStyleName styleName, float styleConfidence)
{
Style = new Style(styleName, styleConfidence);
}
/// <summary>
/// An object representing the style of the text line.
/// </summary>
internal Style Style { get; }
/// <summary>
/// The text line style name, including handwriting and other.
/// </summary>
public TextStyleName StyleName => Style.Name;
/// <summary>
/// The confidence of text line style.
/// </summary>
public float StyleConfidence => Style.Confidence;
}
}