class Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Attributes
boolean_rule[RW]
A rule that may or may not match, depending on the condition. Corresponds to the JSON property `booleanRule` @return [Google::Apis::SheetsV4::BooleanRule]
gradient_rule[RW]
A rule that applies a gradient color scale format, based on the interpolation points listed. The format of a cell will vary based on its contents as compared to the values of the interpolation points. Corresponds to the JSON property `gradientRule` @return [Google::Apis::SheetsV4::GradientRule]
ranges[RW]
The ranges that are formatted if the condition is true. All the ranges must be on the same grid. Corresponds to the JSON property `ranges` @return [Array<Google::Apis::SheetsV4::GridRange>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 3401 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 3406 def update!(**args) @boolean_rule = args[:boolean_rule] if args.key?(:boolean_rule) @gradient_rule = args[:gradient_rule] if args.key?(:gradient_rule) @ranges = args[:ranges] if args.key?(:ranges) end