Class ParagraphStyle
Styles that apply to a whole paragraph. Inherited paragraph styles are represented as unset fields in this message. A paragraph style's parent depends on where the paragraph style is defined: * The ParagraphStyle on a Paragraph inherits from the paragraph's corresponding named style type. * The ParagraphStyle on a named style inherits from the normal text named style. * The ParagraphStyle of the normal text named style inherits from the default paragraph style in the Docs editor. * The ParagraphStyle on a Paragraph element that's contained in a table may inherit its paragraph style from the table style. If the paragraph style does not inherit from a parent, unsetting fields will revert the style to a value matching the defaults in the Docs editor.
Implements
Inherited Members
Namespace: Google.Apis.Docs.v1.Data
Assembly: Google.Apis.Docs.v1.dll
Syntax
public class ParagraphStyle : IDirectResponseSchema
Properties
Alignment
The text alignment for this paragraph.
Declaration
[JsonProperty("alignment")]
public virtual string Alignment { get; set; }
Property Value
Type | Description |
---|---|
string |
AvoidWidowAndOrphan
Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("avoidWidowAndOrphan")]
public virtual bool? AvoidWidowAndOrphan { get; set; }
Property Value
Type | Description |
---|---|
bool? |
BorderBetween
The border between this paragraph and the next and previous paragraphs. If unset, the value is inherited from the parent. The between border is rendered when the adjacent paragraph has the same border and indent properties. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety.
Declaration
[JsonProperty("borderBetween")]
public virtual ParagraphBorder BorderBetween { get; set; }
Property Value
Type | Description |
---|---|
ParagraphBorder |
BorderBottom
The border at the bottom of this paragraph. If unset, the value is inherited from the parent. The bottom border is rendered when the paragraph below has different border and indent properties. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety.
Declaration
[JsonProperty("borderBottom")]
public virtual ParagraphBorder BorderBottom { get; set; }
Property Value
Type | Description |
---|---|
ParagraphBorder |
BorderLeft
The border to the left of this paragraph. If unset, the value is inherited from the parent. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety.
Declaration
[JsonProperty("borderLeft")]
public virtual ParagraphBorder BorderLeft { get; set; }
Property Value
Type | Description |
---|---|
ParagraphBorder |
BorderRight
The border to the right of this paragraph. If unset, the value is inherited from the parent. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety.
Declaration
[JsonProperty("borderRight")]
public virtual ParagraphBorder BorderRight { get; set; }
Property Value
Type | Description |
---|---|
ParagraphBorder |
BorderTop
The border at the top of this paragraph. If unset, the value is inherited from the parent. The top border is rendered when the paragraph above has different border and indent properties. Paragraph borders cannot be partially updated. When changing a paragraph border, the new border must be specified in its entirety.
Declaration
[JsonProperty("borderTop")]
public virtual ParagraphBorder BorderTop { get; set; }
Property Value
Type | Description |
---|---|
ParagraphBorder |
Direction
The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since paragraph direction is not inherited.
Declaration
[JsonProperty("direction")]
public virtual string Direction { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
HeadingId
The heading ID of the paragraph. If empty, then this paragraph is not a heading. This property is read-only.
Declaration
[JsonProperty("headingId")]
public virtual string HeadingId { get; set; }
Property Value
Type | Description |
---|---|
string |
IndentEnd
The amount of indentation for the paragraph on the side that corresponds to the end of the text, based on the current paragraph direction. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("indentEnd")]
public virtual Dimension IndentEnd { get; set; }
Property Value
Type | Description |
---|---|
Dimension |
IndentFirstLine
The amount of indentation for the first line of the paragraph. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("indentFirstLine")]
public virtual Dimension IndentFirstLine { get; set; }
Property Value
Type | Description |
---|---|
Dimension |
IndentStart
The amount of indentation for the paragraph on the side that corresponds to the start of the text, based on the current paragraph direction. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("indentStart")]
public virtual Dimension IndentStart { get; set; }
Property Value
Type | Description |
---|---|
Dimension |
KeepLinesTogether
Whether all lines of the paragraph should be laid out on the same page or column if possible. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("keepLinesTogether")]
public virtual bool? KeepLinesTogether { get; set; }
Property Value
Type | Description |
---|---|
bool? |
KeepWithNext
Whether at least a part of this paragraph should be laid out on the same page or column as the next paragraph if possible. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("keepWithNext")]
public virtual bool? KeepWithNext { get; set; }
Property Value
Type | Description |
---|---|
bool? |
LineSpacing
The amount of space between lines, as a percentage of normal, where normal is represented as 100.0. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("lineSpacing")]
public virtual float? LineSpacing { get; set; }
Property Value
Type | Description |
---|---|
float? |
NamedStyleType
The named style type of the paragraph. Since updating the named style type affects other properties within ParagraphStyle, the named style type is applied before the other properties are updated.
Declaration
[JsonProperty("namedStyleType")]
public virtual string NamedStyleType { get; set; }
Property Value
Type | Description |
---|---|
string |
PageBreakBefore
Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update page_break_before for paragraphs in unsupported regions, including Table, Header, Footer and Footnote, can result in an invalid document state that returns a 400 bad request error.
Declaration
[JsonProperty("pageBreakBefore")]
public virtual bool? PageBreakBefore { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Shading
The shading of the paragraph. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("shading")]
public virtual Shading Shading { get; set; }
Property Value
Type | Description |
---|---|
Shading |
SpaceAbove
The amount of extra space above the paragraph. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("spaceAbove")]
public virtual Dimension SpaceAbove { get; set; }
Property Value
Type | Description |
---|---|
Dimension |
SpaceBelow
The amount of extra space below the paragraph. If unset, the value is inherited from the parent.
Declaration
[JsonProperty("spaceBelow")]
public virtual Dimension SpaceBelow { get; set; }
Property Value
Type | Description |
---|---|
Dimension |
SpacingMode
The spacing mode for the paragraph.
Declaration
[JsonProperty("spacingMode")]
public virtual string SpacingMode { get; set; }
Property Value
Type | Description |
---|---|
string |
TabStops
A list of the tab stops for this paragraph. The list of tab stops is not inherited. This property is read-only.
Declaration
[JsonProperty("tabStops")]
public virtual IList<TabStop> TabStops { get; set; }
Property Value
Type | Description |
---|---|
IList<TabStop> |