2.4.0 (latest) 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

    public sealed class LayoutProperties : IMessage<LayoutProperties>, IEquatable<LayoutProperties>, IDeepCloneable<LayoutProperties>, IBufferMessage, IMessage

Reference documentation and code samples for the Google.Apps.Script.Type class LayoutProperties.

Card layout properties shared across all add-on host applications.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LayoutProperties

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[LayoutProperties](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LayoutProperties](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[LayoutProperties](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Apps.Script.Type](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.md.txt)

## Assembly

Google.Apps.Script.Type.dll

## Constructors

### LayoutProperties()

    public LayoutProperties()

### LayoutProperties(LayoutProperties)

    public LayoutProperties(LayoutProperties other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `LayoutProperties` |

## Properties

### PrimaryColor

    public string PrimaryColor { get; set; }

The primary color of the add-on. It sets the color of toolbar. If no
primary color is set explicitly, the default value provided by the
framework is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SecondaryColor

    public string SecondaryColor { get; set; }

The secondary color of the add-on. It sets the color of buttons.
If primary color is set but no secondary color is set, the
secondary color is the same as the primary color. If neither primary
color nor secondary color is set, the default value provided by the
framework is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |