Cloud Document AI v1beta3 API - Class Document.Types.Style (2.0.0-beta15)

public sealed class Document.Types.Style : IMessage<Document.Types.Style>, IEquatable<Document.Types.Style>, IDeepCloneable<Document.Types.Style>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Document AI v1beta3 API class Document.Types.Style.

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

Inheritance

object > Document.Types.Style

Namespace

Google.Cloud.DocumentAI.V1Beta3

Assembly

Google.Cloud.DocumentAI.V1Beta3.dll

Constructors

Style()

public Style()

Style(Style)

public Style(Document.Types.Style other)
Parameter
NameDescription
otherDocumentTypesStyle

Properties

BackgroundColor

public Color BackgroundColor { get; set; }

Text background color.

Property Value
TypeDescription
Color

Color

public Color Color { get; set; }

Text color.

Property Value
TypeDescription
Color

FontFamily

public string FontFamily { get; set; }

Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp

Property Value
TypeDescription
string

FontSize

public Document.Types.Style.Types.FontSize FontSize { get; set; }

Font size.

Property Value
TypeDescription
DocumentTypesStyleTypesFontSize

FontWeight

public string FontWeight { get; set; }

Font weight. Possible values are normal, bold, bolder, and lighter.

Property Value
TypeDescription
string

TextAnchor

public Document.Types.TextAnchor TextAnchor { get; set; }

Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].

Property Value
TypeDescription
DocumentTypesTextAnchor

TextDecoration

public string TextDecoration { get; set; }

Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style>

Property Value
TypeDescription
string

TextStyle

public string TextStyle { get; set; }

Text style. Possible values are normal, italic, and oblique.

Property Value
TypeDescription
string