Filtering Attributes
Send Feedback

Glossary Item Box

Topic Overview

Purpose

This topic provides a conceptual overview, with code, on using filtering attributes with filtered rows on the IGGridView™ control.

Required background

The following table lists the topics required as a prerequisite to understanding this topic.

Topic

Purpose

Adding the IG Framework File

This topic explains the requirements for adding the grid framework file to an Xcode project, a requirement for using the IGGridView control.


In this topic


Introduction

Filtering attributes summary

Filter attributes allow you to apply a customized visual appearance to text matching a filtered text string. The data source helper’s filteringAttributes property uses an NSDictionary of key/value pairs, the same ones used with NSAttributedString, to define the appearance. To view the supported key/value pairs, visit Apple’s NSAttributedString reference page.

Note: Filtering attributes are only available for iOS 6.0 and beyond.

Apply Filtering Attributes – Code Example

Description

The following code example sets the data source helper’s filteringAttributes property to apply a yellow foreground color matching the filtered text string.

Code

In Objective-C:

[ds.filterAttributes setValue:[UIColor yellowColor] forKey:NSForegroundColorAttributeName];

In C#:

ds.FilterAttributes.SetValueForKey(UIColor.Yellow, new NSString("NSForegroundColor"));


Related Content

Topics

The following topics provide additional information related to this topic.

Topic

Purpose

This section serves as an introduction to the IGGridView’s key features and functionalities.

This topic explains the requirements for adding the grid framework file to an Xcode project, a requirement for using the IGGridView control.

This topic provides basic information about creating an instance of the IGGridView and displaying data to help you with getting up and running with using the control.