Cell クラス

定義

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

public abstract class Cell : Xamarin.Forms.Element, Xamarin.Forms.ICellController
type Cell = class
    inherit Element
    interface ICellController
継承
派生
実装

注釈

Cell サブタイプは次のとおりです。

種類説明
EntryCellラベルと 1 行のテキスト入力フィールドを含む Cell
SwitchCellラベルとオン/オフのスイッチを含む Cell
TextCellCellプライマリ テキストとセカンダリ テキストを含む 。
ImageCellTextCell画像も含む 。
ViewCell開発者が定義した View を含む Cell

さまざまなサブクラスを次の図に示します。

Content = new TableView
{
    Root = new TableRoot ("Table Title")
    {
        new TableSection("Section 1 Title")
        {
            new TextCell
            {
                Text = "TextCell Text",
                Detail = "TextCell Detail"
            },
            new ImageCell
            {
                Text = "ImageCell Text",
                Detail = "ImageCell Detail",
                ImageSource = "http://xamarin.com/images/index/ide-xamarin-studio.png"
            },
            new EntryCell
            {
                Label = "EntryCell:",
                Placeholder = "default keyboard",
                Keyboard = Keyboard.Default
            }
        },
        new TableSection("Section 2 Title")
        {
            new EntryCell
            {
                Label = "Another EntryCell:",
                Placeholder = "phone keyboard",
                Keyboard = Keyboard.Telephone
            },
            new SwitchCell
            {
                Text = "SwitchCell:"
            },
            new ViewCell
            {
                View = new StackLayout
                {
                    Orientation = StackOrientation.Horizontal,
                    Children = 
                    {
                        new Label
                        {
                            Text = "Custom Slider View:"
                        },
                        new Slider
                        {
                        }
                    }
                }
            }
        }
    }
}          

コンストラクター

Cell()

Cell クラスの新しいインスタンスを初期化します。

フィールド

DefaultCellHeight

セルの既定の高さ。

IsEnabledProperty

バインド可能なプロパティ IsEnabled を識別します。

プロパティ

AutomationId

自動化フレームワークがこの要素を見つけ、対話することを可能にする値を取得または設定します。

(継承元 Element)
BindingContext

バインドされたプロパティのうち、この BindableObject に属するプロパティの対象となるプロパティが含まれるオブジェクトを取得または設定します。

(継承元 BindableObject)
ClassId

意味的に同類の要素の集合を識別するために使用される値を取得または設定します。

(継承元 Element)
ContextActions

ユーザーが Cell にデバイス固有のコンテキストのジェスチャを実行するときに表示されるメニュー項目の一覧を取得します。

Dispatcher

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

(継承元 BindableObject)
EffectControlProvider

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
Effects

この項目に適用される効果の一覧。

(継承元 Element)
HasContextActions

セルに ContextActions リスト プロパティのメニュー項目が少なくとも 1 つあるかどうかを示す値を取得します。

Height

Cell の高さを取得または設定します。

Id

アプリケーションの実行により要素を一意に識別するために使用できる値を取得します。

(継承元 Element)
IsContextActionsLegacyModeEnabled

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

IsEnabled

Cell の IsEnabled 状態を取得または設定します。 これはバインド可能なプロパティです。

LogicalChildren

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
Parent

要素の親要素を取得または設定します。

(継承元 Element)
ParentView
互換性のために残されています。

この要素の最も近い祖先 (すなわち VisualElement) である要素を取得します。

(継承元 Element)
Platform
互換性のために残されています。

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

(継承元 Element)
RealParent

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
RenderHeight

デバイス上でレンダリングされたセルの高さを取得します。

StyleId

要素を一意に識別するユーザー定義の値を取得または設定します。

(継承元 Element)

メソッド

ApplyBindings()

BindingContext にバインディングを適用します。

(継承元 BindableObject)
ClearValue(BindableProperty)

propertySetValue によって設定された値を消去します。

(継承元 BindableObject)
ClearValue(BindablePropertyKey)

propertyKey によって識別されるプロパティの SetValue によって設定される値を消去します。

(継承元 BindableObject)
CoerceValue(BindableProperty)

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

(継承元 BindableObject)
CoerceValue(BindablePropertyKey)

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

(継承元 BindableObject)
Descendants()

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
EffectIsAttached(String)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
FindByName(String)

指定した名前を持つ要素を返します。

(継承元 Element)
ForceUpdateSize()

セルのサイズをすぐに更新します。

GetValue(BindableProperty)

BindableProperty に含まれる値を返します。

(継承元 BindableObject)
GetValues(BindableProperty, BindableProperty)
互換性のために残されています。

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
互換性のために残されています。

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 BindableObject)
IsSet(BindableProperty)

ターゲット プロパティが存在し、設定されている場合、true を返します。

(継承元 BindableObject)
On<T>()

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

OnAppearing()

Appearing イベントが発生するたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

OnBindingContextChanged()

バインド コンテキストが変更されたときに発生するイベント。

OnChildAdded(Element)

ChildAdded イベントを生成する必要があるたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

(継承元 Element)
OnChildRemoved(Element)
互換性のために残されています。

ChildRemoved イベントを生成する必要があるたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

(継承元 Element)
OnChildRemoved(Element, Int32)

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

(継承元 Element)
OnDisappearing()

Disappearing イベントが発生するたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。

OnParentSet()

アプリケーション開発者は、セルの親が設定されたときにアクションを実行するように、このメソッドをオーバーライドすることができます。

OnPropertyChanged(String)

バインドされたプロパティが変更されたときに呼び出されるメソッド。

(継承元 Element)
OnPropertyChanging(String)

アプリケーション開発者は、propertyName によって名前が付けられたプロパティが設定されたときにアクションを実行するように、このメソッドをオーバーライドすることができます。

OnTapped()

Cell がタップされるたびに呼び出されます。

RemoveBinding(BindableProperty)

以前に設定されたバインディングを削除します。

(継承元 BindableObject)
RemoveDynamicResource(BindableProperty)

以前に設定された動的リソースを削除します

(継承元 Element)
SendAppearing()

Xamarin.Forms プラットフォームによる内部使用向け。

SendDisappearing()

Xamarin.Forms プラットフォームによる内部使用向け。

SetBinding(BindableProperty, BindingBase)

プロパティにバインディングを割り当てます。

(継承元 BindableObject)
SetDynamicResource(BindableProperty, String)

キーを指定した DynamicResource を介して更新するこの要素の BindableProperty プロパティを設定します。

(継承元 Element)
SetValue(BindableProperty, Object)

指定したプロパティの値を設定します。

(継承元 BindableObject)
SetValue(BindablePropertyKey, Object)

propertyKey の値を設定します。

(継承元 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 BindableObject)
SetValueFromRenderer(BindableProperty, Object)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
SetValueFromRenderer(BindablePropertyKey, Object)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
UnapplyBindings()

以前に設定されたバインディングをすべて解除します。

(継承元 BindableObject)

イベント

Appearing

Cell の視覚的な表現が、視覚的なレイアウトに追加されているときに発生します。

BindingContextChanged

BindingContext プロパティが変更されるたびに発生します。

(継承元 BindableObject)
ChildAdded

子要素が要素に追加されるたびに発生します。

(継承元 Element)
ChildRemoved

子要素が要素から削除されるたびに発生します。

(継承元 Element)
DescendantAdded

子要素が要素サブツリーに追加されるたびに発生します。

(継承元 Element)
DescendantRemoved

子要素が要素サブツリーから削除されるたびに発生します。

(継承元 Element)
Disappearing

Cell の視覚的な表現が、視覚的なレイアウトから削除されているときに発生します。

ForceUpdateSizeRequested

Xamarin.Forms プラットフォームによる内部使用向け。

PlatformSet
互換性のために残されています。

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

(継承元 Element)
PropertyChanged

プロパティが変更されたときに発生します。

(継承元 BindableObject)
PropertyChanging

プロパティが変更されようとしているときに発生します。

(継承元 BindableObject)
Tapped

Cell がタップされると発生します。

明示的なインターフェイスの実装

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 BindableObject)
IElementController.SetValueFromRenderer(BindableProperty, Object)

Xamarin.Forms プラットフォームによる内部使用向け。

(継承元 Element)
INameScope.RegisterName(String, Object)

内部使用のみ。

(継承元 Element)

拡張メソッド

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

プロパティにバインドを作成し、適用します。

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
互換性のために残されています。

式からバインドを作成し適用します。

SetOnAppTheme<T>(BindableObject, BindableProperty, T, T)

すべての Xamarin.Forms セルに基本クラスと機能を提供します。 セルは ListView または TableView に追加される要素です。

GetPath(Cell)

プラットフォーム レンダラーによる内部使用向け。

FindByName<T>(Element, String)

element を含むスコープに name という名前を持つ型 T のインスタンスを返します。

適用対象