UITableViewCell.Highlighted Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Whether the cell is highlighted.
public virtual bool Highlighted { [Foundation.Export("isHighlighted")] get; [Foundation.Export("setHighlighted:")] set; }
member this.Highlighted : bool with get, set
Property Value
Default value is false
.
- Attributes
Remarks
Highlighting affects the appearance of labels, the image and background. When Highlighted is true
, the labels in the cell are drawn in their highlighted text color (which is white by default).
When this property is set to true
, the transition to the new appearance is not animated. Use the SetHighlighted(Boolean, Boolean) method for animated highlight-state transitions.
For highlighting to work properly, set the HighlightedTextColor for the two labels (TextLabel and DetailTextLabel), and set the HighlightedImage property on the cell's ImageView.