Show / Hide Table of Contents

Class DocumentStyle

The style of the document.

Inheritance
object
DocumentStyle
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Docs.v1.Data
Assembly: Google.Apis.Docs.v1.dll
Syntax
public class DocumentStyle : IDirectResponseSchema

Properties

Background

The background of the document. Documents cannot have a transparent background color.

Declaration
[JsonProperty("background")]
public virtual Background Background { get; set; }
Property Value
Type Description
Background

DefaultFooterId

The ID of the default footer. If not set, there's no default footer. This property is read-only.

Declaration
[JsonProperty("defaultFooterId")]
public virtual string DefaultFooterId { get; set; }
Property Value
Type Description
string

DefaultHeaderId

The ID of the default header. If not set, there's no default header. This property is read-only.

Declaration
[JsonProperty("defaultHeaderId")]
public virtual string DefaultHeaderId { 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

EvenPageFooterId

The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page footer. This property is read-only.

Declaration
[JsonProperty("evenPageFooterId")]
public virtual string EvenPageFooterId { get; set; }
Property Value
Type Description
string

EvenPageHeaderId

The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there's no even page header. This property is read-only.

Declaration
[JsonProperty("evenPageHeaderId")]
public virtual string EvenPageHeaderId { get; set; }
Property Value
Type Description
string

FirstPageFooterId

The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there's no first page footer. This property is read-only.

Declaration
[JsonProperty("firstPageFooterId")]
public virtual string FirstPageFooterId { get; set; }
Property Value
Type Description
string

FirstPageHeaderId

The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there's no first page header. This property is read-only.

Declaration
[JsonProperty("firstPageHeaderId")]
public virtual string FirstPageHeaderId { get; set; }
Property Value
Type Description
string

FlipPageOrientation

Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape.

Declaration
[JsonProperty("flipPageOrientation")]
public virtual bool? FlipPageOrientation { get; set; }
Property Value
Type Description
bool?

MarginBottom

The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles.

Declaration
[JsonProperty("marginBottom")]
public virtual Dimension MarginBottom { get; set; }
Property Value
Type Description
Dimension

MarginFooter

The amount of space between the bottom of the page and the contents of the footer.

Declaration
[JsonProperty("marginFooter")]
public virtual Dimension MarginFooter { get; set; }
Property Value
Type Description
Dimension

MarginHeader

The amount of space between the top of the page and the contents of the header.

Declaration
[JsonProperty("marginHeader")]
public virtual Dimension MarginHeader { get; set; }
Property Value
Type Description
Dimension

MarginLeft

The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections.

Declaration
[JsonProperty("marginLeft")]
public virtual Dimension MarginLeft { get; set; }
Property Value
Type Description
Dimension

MarginRight

The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections.

Declaration
[JsonProperty("marginRight")]
public virtual Dimension MarginRight { get; set; }
Property Value
Type Description
Dimension

MarginTop

The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles.

Declaration
[JsonProperty("marginTop")]
public virtual Dimension MarginTop { get; set; }
Property Value
Type Description
Dimension

PageNumberStart

The page number from which to start counting the number of pages.

Declaration
[JsonProperty("pageNumberStart")]
public virtual int? PageNumberStart { get; set; }
Property Value
Type Description
int?

PageSize

The size of a page in the document.

Declaration
[JsonProperty("pageSize")]
public virtual Size PageSize { get; set; }
Property Value
Type Description
Size

UseCustomHeaderFooterMargins

Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle margin_footer, SectionStyle margin_footer are respected. When false, the default values in the Docs editor for header and footer margin is used. This property is read-only.

Declaration
[JsonProperty("useCustomHeaderFooterMargins")]
public virtual bool? UseCustomHeaderFooterMargins { get; set; }
Property Value
Type Description
bool?

UseEvenPageHeaderFooter

Indicates whether to use the even page header / footer IDs for the even pages.

Declaration
[JsonProperty("useEvenPageHeaderFooter")]
public virtual bool? UseEvenPageHeaderFooter { get; set; }
Property Value
Type Description
bool?

UseFirstPageHeaderFooter

Indicates whether to use the first page header / footer IDs for the first page.

Declaration
[JsonProperty("useFirstPageHeaderFooter")]
public virtual bool? UseFirstPageHeaderFooter { get; set; }
Property Value
Type Description
bool?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX