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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLayoutProperties\u003c/code\u003e class in the \u003ccode\u003eGoogle.Apps.Script.Type\u003c/code\u003e namespace provides settings for the visual layout of add-ons across various host applications.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e, showcasing its capabilities for message handling, equality checks, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLayoutProperties\u003c/code\u003e has two constructors: a default constructor and one that accepts another \u003ccode\u003eLayoutProperties\u003c/code\u003e instance for copying, providing flexibility in object creation.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two properties, \u003ccode\u003ePrimaryColor\u003c/code\u003e and \u003ccode\u003eSecondaryColor\u003c/code\u003e, both of type string, allowing developers to customize the add-on's toolbar and button colors, respectively, with default colors being applied if not explicitly set.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation, version 2.3.0, is available for the LayoutProperties class, with past versions 2.2.0 down to 1.0.0 also available.\u003c/p\u003e\n"]]],[],null,["# Google.Apps.Script.Type - Class LayoutProperties (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties)\n- [2.2.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.2.0/Google.Apps.Script.Type.LayoutProperties)\n- [2.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.1.0/Google.Apps.Script.Type.LayoutProperties)\n- [2.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.0.0/Google.Apps.Script.Type.LayoutProperties)\n- [1.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.1.0/Google.Apps.Script.Type.LayoutProperties)\n- [1.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.0.0/Google.Apps.Script.Type.LayoutProperties) \n\n public sealed class LayoutProperties : IMessage\u003cLayoutProperties\u003e, IEquatable\u003cLayoutProperties\u003e, IDeepCloneable\u003cLayoutProperties\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google.Apps.Script.Type class LayoutProperties.\n\nCard layout properties shared across all add-on host applications. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LayoutProperties \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LayoutProperties](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LayoutProperties](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LayoutProperties](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.LayoutProperties), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Apps.Script.Type](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type)\n\nAssembly\n--------\n\nGoogle.Apps.Script.Type.dll\n\nConstructors\n------------\n\n### LayoutProperties()\n\n public LayoutProperties()\n\n### LayoutProperties(LayoutProperties)\n\n public LayoutProperties(LayoutProperties other)\n\nProperties\n----------\n\n### PrimaryColor\n\n public string PrimaryColor { get; set; }\n\nThe primary color of the add-on. It sets the color of toolbar. If no\nprimary color is set explicitly, the default value provided by the\nframework is used.\n\n### SecondaryColor\n\n public string SecondaryColor { get; set; }\n\nThe secondary color of the add-on. It sets the color of buttons.\nIf primary color is set but no secondary color is set, the\nsecondary color is the same as the primary color. If neither primary\ncolor nor secondary color is set, the default value provided by the\nframework is used."]]