Class FilterCriteria

FilterCriteria

Access filter criteria. To create a new criteria, use SpreadsheetApp.newFilterCriteria() and FilterCriteriaBuilder.

Methods

MethodReturn typeBrief description
copy()FilterCriteriaBuilderCreates a builder for a filter criteria based on this filter criteria's settings.
getCriteriaType()BooleanCriteriaReturns the boolean criteria type as defined in the BooleanCriteria enum.
getCriteriaValues()Object[]Returns an array of arguments for the boolean criteria.
getHiddenValues()String[]Returns the values to hide.
getVisibleValues()String[]Returns the values to show.

Detailed documentation

copy()

Creates a builder for a filter criteria based on this filter criteria's settings.

Return

FilterCriteriaBuilder — a filter criteria builder based on this filter criteria


getCriteriaType()

Returns the boolean criteria type as defined in the BooleanCriteria enum. To get the arguments for the criteria, use getCriteriaValues(). To use these values to create or modify a filter criteria, see FilterCriteriaBuilder.withCriteria(criteria, args).

Return

BooleanCriteria — the type of boolean criteria


getCriteriaValues()

Returns an array of arguments for the boolean criteria. To get the boolean criteria type, use getCriteriaType(). To use these values to create or modify a filter criteria, see FilterCriteriaBuilder.withCriteria(criteria, args).

Return

Object[] — an array of arguments appropriate to the boolean criteria type; the number of arguments and their type match the corresponding when...() method of the FilterCriteriaBuilder class


getHiddenValues()

Returns the values to hide.

Return

String[] — an array of values to hide


getVisibleValues()

Returns the values to show.

Return

String[] — an array of values to show

フィードバックを送信...

ご不明な点がありましたら、Google のサポートページをご覧ください。