UIKit.UITableViewCell.SetHighlighted Method
Sets the highlighted state of the cell, optionally animating the transition between states.

Syntax

[Foundation.Export("setHighlighted:animated:")]
public virtual void SetHighlighted (bool highlighted, bool animated)

Parameters

highlighted
true to highlight the cell, false to unhighlight.
animated
true to animate the highlight transition, false to make the transition immediate.

Remarks

Highlights or unhighlights the cell, animating the transition if animated is true. Highlighting changes the appearance of the cell's labels, image, and background.

For highlighting to work properly, set the UILabel.HighlightedTextColor for the two labels (UITableViewCell.TextLabel and UITableViewCell.DetailTextLabel), and set the UImageView.HighlightedImage property on the cell's UITableViewCell.ImageView.

Custom cells can override this method to make additional changes when transitioning between states.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0