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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eStyleInfo\u003c/code\u003e class within the Google Cloud Document AI v1beta3 API, specifically for \u003ccode\u003eDocument.Types.Page.Types.Token.Types\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStyleInfo\u003c/code\u003e class represents font and text style attributes, including properties like \u003ccode\u003eBold\u003c/code\u003e, \u003ccode\u003eItalic\u003c/code\u003e, \u003ccode\u003eFontSize\u003c/code\u003e, \u003ccode\u003eFontType\u003c/code\u003e, \u003ccode\u003eFontWeight\u003c/code\u003e, \u003ccode\u003eTextColor\u003c/code\u003e, and \u003ccode\u003eBackgroundColor\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt also outlines whether the text is handwritten, contains letter spacing information and if the text is underlined, struck-out, or in superscript/subscript.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStyleInfo\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStyleInfo\u003c/code\u003e class has different constructors to work with, one empty and another one that receives another \u003ccode\u003eStyleInfo\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Cloud Document AI v1beta3 API - Class Document.Types.Page.Types.Token.Types.StyleInfo (2.0.0-beta26)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta26 (latest)](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types.StyleInfo)\n- [2.0.0-beta25](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/2.0.0-beta25/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types.StyleInfo)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/1.0.0-beta04/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types.StyleInfo) \n\n public sealed class Document.Types.Page.Types.Token.Types.StyleInfo : IMessage\u003cDocument.Types.Page.Types.Token.Types.StyleInfo\u003e, IEquatable\u003cDocument.Types.Page.Types.Token.Types.StyleInfo\u003e, IDeepCloneable\u003cDocument.Types.Page.Types.Token.Types.StyleInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Document AI v1beta3 API class Document.Types.Page.Types.Token.Types.StyleInfo.\n\nFont and other text style attributes. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Document.Types.Page.Types.Token.Types.StyleInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Document](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types)[Page](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types)[Token](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types)[StyleInfo](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types.StyleInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Document](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types)[Page](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types)[Token](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types)[StyleInfo](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types.StyleInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Document](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types)[Page](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types)[Token](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token)[Types](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types)[StyleInfo](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3.Document.Types.Page.Types.Token.Types.StyleInfo), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DocumentAI.V1Beta3](/dotnet/docs/reference/Google.Cloud.DocumentAI.V1Beta3/latest/Google.Cloud.DocumentAI.V1Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.DocumentAI.V1Beta3.dll\n\nConstructors\n------------\n\n### StyleInfo()\n\n public StyleInfo()\n\n### StyleInfo(StyleInfo)\n\n public StyleInfo(Document.Types.Page.Types.Token.Types.StyleInfo other)\n\nProperties\n----------\n\n### BackgroundColor\n\n public Color BackgroundColor { get; set; }\n\nColor of the background.\n\n### Bold\n\n public bool Bold { get; set; }\n\nWhether the text is bold (equivalent to\n\\[font_weight\\]\\[google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight\\]\nis at least `700`).\n\n### FontSize\n\n public int FontSize { get; set; }\n\nFont size in points (`1` point is `¹⁄₇₂` inches).\n\n### FontType\n\n public string FontType { get; set; }\n\nName or style of the font.\n\n### FontWeight\n\n public int FontWeight { get; set; }\n\nTrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).\nNormal is `400`, bold is `700`.\n\n### Handwritten\n\n public bool Handwritten { get; set; }\n\nWhether the text is handwritten.\n\n### Italic\n\n public bool Italic { get; set; }\n\nWhether the text is italic.\n\n### LetterSpacing\n\n public double LetterSpacing { get; set; }\n\nLetter spacing in points.\n\n### PixelFontSize\n\n public double PixelFontSize { get; set; }\n\nFont size in pixels, equal to *unrounded\n\\[font_size\\]\\[google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size\\]*\n\n- *resolution* ÷ `72.0`.\n\n### Smallcaps\n\n public bool Smallcaps { get; set; }\n\nWhether the text is in small caps. This feature is not supported yet.\n\n### Strikeout\n\n public bool Strikeout { get; set; }\n\nWhether the text is strikethrough. This feature is not supported yet.\n\n### Subscript\n\n public bool Subscript { get; set; }\n\nWhether the text is a subscript. This feature is not supported yet.\n\n### Superscript\n\n public bool Superscript { get; set; }\n\nWhether the text is a superscript. This feature is not supported yet.\n\n### TextColor\n\n public Color TextColor { get; set; }\n\nColor of the text.\n\n### Underlined\n\n public bool Underlined { get; set; }\n\nWhether the text is underlined."]]