Share via


DocumentStyle Class

Definition

An object representing observed text styles.

public class DocumentStyle : System.ClientModel.Primitives.IJsonModel<Azure.AI.DocumentIntelligence.DocumentStyle>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.DocumentIntelligence.DocumentStyle>
type DocumentStyle = class
    interface IJsonModel<DocumentStyle>
    interface IPersistableModel<DocumentStyle>
Public Class DocumentStyle
Implements IJsonModel(Of DocumentStyle), IPersistableModel(Of DocumentStyle)
Inheritance
DocumentStyle
Implements

Properties

BackgroundColor

Background color in #rrggbb hexadecimal format..

Color

Foreground color in #rrggbb hexadecimal format.

Confidence

Confidence of correctly identifying the style.

FontStyle

Font style.

FontWeight

Font weight.

IsHandwritten

Is content handwritten?.

SimilarFontFamily

Visually most similar font from among the set of supported font families, with fallback fonts following CSS convention (ex. 'Arial, sans-serif').

Spans

Location of the text elements in the concatenated content the style applies to.

Explicit Interface Implementations

IJsonModel<DocumentStyle>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DocumentStyle>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DocumentStyle>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DocumentStyle>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DocumentStyle>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to