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 v1beta3 API class Document.Types.Page.Types.Token.Types.StyleInfo.
Font and other text style attributes.
Implements
IMessageDocumentTypesPageTypesTokenTypesStyleInfo, IEquatableDocumentTypesPageTypesTokenTypesStyleInfo, IDeepCloneableDocumentTypesPageTypesTokenTypesStyleInfo, IBufferMessage, IMessageNamespace
Google.Cloud.DocumentAI.V1Beta3Assembly
Google.Cloud.DocumentAI.V1Beta3.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.v1beta3.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.v1beta3.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. This feature is not supported yet.
Property Value | |
---|---|
Type | Description |
bool |
Strikeout
public bool Strikeout { get; set; }
Whether the text is strikethrough. This feature is not supported yet.
Property Value | |
---|---|
Type | Description |
bool |
Subscript
public bool Subscript { get; set; }
Whether the text is a subscript. This feature is not supported yet.
Property Value | |
---|---|
Type | Description |
bool |
Superscript
public bool Superscript { get; set; }
Whether the text is a superscript. This feature is not supported yet.
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 |