Class TextFormat
The format of a run of text in a cell. Absent values indicate that the field isn't specified.
Implements
Inherited Members
Namespace: Google.Apis.Sheets.v4.Data
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class TextFormat : IDirectResponseSchema
Properties
Bold
True if the text is bold.
Declaration
[JsonProperty("bold")]
public virtual bool? Bold { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
FontFamily
The font family.
Declaration
[JsonProperty("fontFamily")]
public virtual string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
string |
FontSize
The size of the font.
Declaration
[JsonProperty("fontSize")]
public virtual int? FontSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
ForegroundColor
The foreground color of the text. Deprecated: Use foreground_color_style.
Declaration
[JsonProperty("foregroundColor")]
public virtual Color ForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ForegroundColorStyle
The foreground color of the text. If foreground_color is also set, this field takes precedence.
Declaration
[JsonProperty("foregroundColorStyle")]
public virtual ColorStyle ForegroundColorStyle { get; set; }
Property Value
Type | Description |
---|---|
ColorStyle |
Italic
True if the text is italicized.
Declaration
[JsonProperty("italic")]
public virtual bool? Italic { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Link
The link destination of the text, if any. Setting the link field in a TextFormatRun will clear the cell's existing links or a cell-level link set in the same request. When a link is set, the text foreground color will be set to the default link color and the text will be underlined. If these fields are modified in the same request, those values will be used instead of the link defaults.
Declaration
[JsonProperty("link")]
public virtual Link Link { get; set; }
Property Value
Type | Description |
---|---|
Link |
Strikethrough
True if the text has a strikethrough.
Declaration
[JsonProperty("strikethrough")]
public virtual bool? Strikethrough { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Underline
True if the text is underlined.
Declaration
[JsonProperty("underline")]
public virtual bool? Underline { get; set; }
Property Value
Type | Description |
---|---|
bool? |