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