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
Name Description
other DocumentTypesPageTypesTokenTypesStyleInfo

Properties

BackgroundColor

public Color BackgroundColor { get; set; }

Color of the background.

Property Value
Type Description
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
Type Description
bool

FontSize

public int FontSize { get; set; }

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

Property Value
Type Description
int

FontType

public string FontType { get; set; }

Name or style of the font.

Property Value
Type Description
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
Type Description
int

Handwritten

public bool Handwritten { get; set; }

Whether the text is handwritten.

Property Value
Type Description
bool

Italic

public bool Italic { get; set; }

Whether the text is italic.

Property Value
Type Description
bool

LetterSpacing

public double LetterSpacing { get; set; }

Letter spacing in points.

Property Value
Type Description
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
Type Description
double

Smallcaps

public bool Smallcaps { get; set; }

Whether the text is in small caps.

Property Value
Type Description
bool

Strikeout

public bool Strikeout { get; set; }

Whether the text is strikethrough.

Property Value
Type Description
bool

Subscript

public bool Subscript { get; set; }

Whether the text is a subscript.

Property Value
Type Description
bool

Superscript

public bool Superscript { get; set; }

Whether the text is a superscript.

Property Value
Type Description
bool

TextColor

public Color TextColor { get; set; }

Color of the text.

Property Value
Type Description
Color

Underlined

public bool Underlined { get; set; }

Whether the text is underlined.

Property Value
Type Description
bool