public sealed class Style : IMessage<Document.Types.Style>, IEquatable<Document.Types.Style>, IDeepCloneable<Document.Types.Style>, IBufferMessage, IMessage
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.
Implements
IMessage<Document.Types.Style>, IEquatable<Document.Types.Style>, IDeepCloneable<Document.Types.Style>, IBufferMessage, IMessageNamespace
Google.Cloud.DocumentAI.V1Beta3Assembly
Google.Cloud.DocumentAI.V1Beta3.dll
Constructors
Style()
public Style()
Style(Document.Types.Style)
public Style(Document.Types.Style other)
Parameter | |
---|---|
Name | Description |
other | Document.Types.Style |
Properties
BackgroundColor
public Color BackgroundColor { get; set; }
Text background color.
Property Value | |
---|---|
Type | Description |
Color |
Color
public Color Color { get; set; }
Text color.
Property Value | |
---|---|
Type | Description |
Color |
FontSize
public Document.Types.Style.Types.FontSize FontSize { get; set; }
Font size.
Property Value | |
---|---|
Type | Description |
Document.Types.Style.Types.FontSize |
FontWeight
public string FontWeight { get; set; }
Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
Property Value | |
---|---|
Type | Description |
String |
TextAnchor
public Document.Types.TextAnchor TextAnchor { get; set; }
Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
Property Value | |
---|---|
Type | Description |
Document.Types.TextAnchor |
TextDecoration
public string TextDecoration { get; set; }
Text decoration. Follows CSS standard. <text-decoration-line> <text-decoration-color> <text-decoration-style> https://www.w3schools.com/cssref/pr_text_text-decoration.asp
Property Value | |
---|---|
Type | Description |
String |
TextStyle
public string TextStyle { get; set; }
Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
Property Value | |
---|---|
Type | Description |
String |