Class BorderStyle
The style options for the border of a card or widget, including the border type and color.
Implements
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public sealed class BorderStyle : IMessage<BorderStyle>, IEquatable<BorderStyle>, IDeepCloneable<BorderStyle>, IBufferMessage, IMessage
Constructors
BorderStyle()
Declaration
public BorderStyle()
BorderStyle(BorderStyle)
Declaration
public BorderStyle(BorderStyle other)
Parameters
Type | Name | Description |
---|---|---|
BorderStyle | other |
Properties
CornerRadius
The corner radius for the border.
Declaration
public int CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
int |
StrokeColor
The colors to use when the type is BORDER_TYPE_STROKE
.
To set the stroke color, specify a value for the red
, green
, and blue
fields.
The value must be a float number between 0 and 1 based on the RGB color
value, where 0
(0/255) represents the absence of color and 1
(255/255)
represents the maximum intensity of the color.
For example, the following sets the color to red at its maximum intensity:
"color": {
"red": 1,
"green": 0,
"blue": 0,
}
The alpha
field is unavailable for stroke color. If specified, this field
is ignored.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Type
The border type.
Declaration
public BorderStyle.Types.BorderType Type { get; set; }
Property Value
Type | Description |
---|---|
BorderStyle.Types.BorderType |