Cloud Document AI v1 API - Class Document.Types.Page.Types.Token.Types.StyleInfo (3.15.0)

public sealed class Document.Types.Page.Types.Token.Types.StyleInfo : IMessage<Document.Types.Page.Types.Token.Types.StyleInfo>, IEquatable<Document.Types.Page.Types.Token.Types.StyleInfo>, IDeepCloneable<Document.Types.Page.Types.Token.Types.StyleInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.Page.Types.Token.Types.StyleInfo.

Font and other text style attributes.

Inheritance

object > Document.Types.Page.Types.Token.Types.StyleInfo

Namespace

Google.Cloud.DocumentAI.V1

Assembly

Google.Cloud.DocumentAI.V1.dll

Constructors

StyleInfo()

public StyleInfo()

StyleInfo(StyleInfo)

public StyleInfo(Document.Types.Page.Types.Token.Types.StyleInfo other)
Parameter
NameDescription
otherDocumentTypesPageTypesTokenTypesStyleInfo

Properties

BackgroundColor

public Color BackgroundColor { get; set; }

Color of the background.

Property Value
TypeDescription
Color

Bold

public bool Bold { get; set; }

Whether the text is bold (equivalent to [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] is at least 700).

Property Value
TypeDescription
bool

FontSize

public int FontSize { get; set; }

Font size in points (1 point is ¹⁄₇₂ inches).

Property Value
TypeDescription
int

FontType

public string FontType { get; set; }

Name or style of the font.

Property Value
TypeDescription
string

FontWeight

public int FontWeight { get; set; }

TrueType weight on a scale 100 (thin) to 1000 (ultra-heavy). Normal is 400, bold is 700.

Property Value
TypeDescription
int

Handwritten

public bool Handwritten { get; set; }

Whether the text is handwritten.

Property Value
TypeDescription
bool

Italic

public bool Italic { get; set; }

Whether the text is italic.

Property Value
TypeDescription
bool

LetterSpacing

public double LetterSpacing { get; set; }

Letter spacing in points.

Property Value
TypeDescription
double

PixelFontSize

public double PixelFontSize { get; set; }

Font size in pixels, equal to unrounded [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size] * resolution ÷ 72.0.

Property Value
TypeDescription
double

Smallcaps

public bool Smallcaps { get; set; }

Whether the text is in small caps.

Property Value
TypeDescription
bool

Strikeout

public bool Strikeout { get; set; }

Whether the text is strikethrough.

Property Value
TypeDescription
bool

Subscript

public bool Subscript { get; set; }

Whether the text is a subscript.

Property Value
TypeDescription
bool

Superscript

public bool Superscript { get; set; }

Whether the text is a superscript.

Property Value
TypeDescription
bool

TextColor

public Color TextColor { get; set; }

Color of the text.

Property Value
TypeDescription
Color

Underlined

public bool Underlined { get; set; }

Whether the text is underlined.

Property Value
TypeDescription
bool