如何访问单个 TListViewItem 上的文本按钮

How to access text button on individual TListViewItem

我有一个 Firemonkey TListView component which I have customized to include a Text and TextButton component on each item. To customize my TListView component, I followed the "Using the Custom Value" section of this documentation

我需要隐藏列表中某些项目的 TextButton。我已经想出如何使用以下方法一次隐藏列表中的所有 TextButton 组件:

MyListView->ItemAppearanceObjects->ItemObjects->TextButton->Visible = false;

但是我不知道如何访问单个行的 TextButton 以隐藏我需要隐藏的特定按钮。我怎样才能访问列表中单个行的 TextButton

使用TListViewItem.Objects 属性访问列表项的各种子对象,例如:

MyListView->Items->Item[index]->Objects->TextButton->Visible = false;