FMX.ListView.Types.TListItemView.ObjectByName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ObjectByName(const AName: string): TListItemDrawable; deprecated 'Use DrawableByName';

C++

TListItemDrawable* __fastcall ObjectByName _DEPRECATED_ATTRIBUTE1("Use DrawableByName") (const System::UnicodeString AName);

Properties

Type Visibility Source Unit Parent
function public
FMX.ListView.Types.pas
FMX.ListView.Types.hpp
FMX.ListView.Types TListItemView

Description

Warning: ObjectByName is deprecated. Please use DrawableByName.

Returns a list item drawable from the view list that has the specified name.

A list item drawable with the specified name must exist. Otherwise, ObjectByName raises an EListError exception with the following message:

"Item not found"