EntryCell クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ラベルと 1 行のテキスト入力フィールドを含む Cell。
public class EntryCell : Xamarin.Forms.Cell, Xamarin.Forms.IEntryCellController
type EntryCell = class
inherit Cell
interface IEntryCellController
- 継承
- 実装
注釈
次の例は、基本的な使用方法を示しています。
using System;
using Xamarin.Forms;
namespace FormsGallery
{
class EntryCellDemoPage : ContentPage
{
public EntryCellDemoPage()
{
Label header = new Label
{
Text = "EntryCell",
FontSize = Device.GetNamedSize (NamedSize.Large, typeof(EntryCell)),
HorizontalOptions = LayoutOptions.Center
};
TableView tableView = new TableView
{
Intent = TableIntent.Form,
Root = new TableRoot
{
new TableSection
{
new EntryCell
{
Label = "EntryCell:",
Placeholder = "Type Text Here"
}
}
}
};
// Accomodate iPhone status bar.
this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);
// Build the page.
this.Content = new StackLayout
{
Children =
{
header,
tableView
}
};
}
}
}
コンストラクター
EntryCell() |
EntryCell クラスの新しいインスタンスを初期化します。 |
フィールド
DefaultCellHeight |
セルの既定の高さ。 (継承元 Cell) |
HorizontalTextAlignmentProperty |
バインド可能なプロパティ HorizontalTextAlignment を識別します。 |
KeyboardProperty |
バインド可能なプロパティ Keyboard を識別します。 |
LabelColorProperty |
バインド可能なプロパティ LabelColor を識別します。 |
LabelProperty |
バインド可能なプロパティ Label を識別します。 |
PlaceholderProperty |
バインド可能なプロパティ Placeholder を識別します。 |
TextProperty |
バインド可能なプロパティ Text を識別します。 |
VerticalTextAlignmentProperty |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 |
XAlignProperty |
古い.
バインド可能なプロパティ XAlign を識別します。 |
プロパティ
AutomationId |
自動化フレームワークがこの要素を見つけ、対話することを可能にする値を取得または設定します。 (継承元 Element) |
BindingContext |
バインドされたプロパティのうち、この BindableObject に属するプロパティの対象となるプロパティが含まれるオブジェクトを取得または設定します。 (継承元 BindableObject) |
ClassId |
意味的に同類の要素の集合を識別するために使用される値を取得または設定します。 (継承元 Element) |
ContextActions |
ユーザーが Cell にデバイス固有のコンテキストのジェスチャを実行するときに表示されるメニュー項目の一覧を取得します。 (継承元 Cell) |
Dispatcher |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 BindableObject) |
EffectControlProvider |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Element) |
Effects |
この項目に適用される効果の一覧。 (継承元 Element) |
HasContextActions |
セルに ContextActions リスト プロパティのメニュー項目が少なくとも 1 つあるかどうかを示す値を取得します。 (継承元 Cell) |
Height |
Cell の高さを取得または設定します。 (継承元 Cell) |
HorizontalTextAlignment |
Text プロパティの水平方向の配置を取得または設定します。 これはバインド可能なプロパティです。 |
Id |
アプリケーションの実行により要素を一意に識別するために使用できる値を取得します。 (継承元 Element) |
IsContextActionsLegacyModeEnabled |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 Cell) |
IsEnabled |
Cell の IsEnabled 状態を取得または設定します。 これはバインド可能なプロパティです。 (継承元 Cell) |
Keyboard |
EntryCell の編集中に表示する Keyboard を取得または設定します。 これはバインド可能なプロパティです。 |
Label |
EntryCell 内の Entry の横に表示される固定テキストを取得または設定します。 これはバインド可能なプロパティです。 |
LabelColor |
Label プロパティの描画に使用する Color を取得または設定します。 これはバインド可能なプロパティです。 |
LogicalChildren |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Element) |
Parent |
要素の親要素を取得または設定します。 (継承元 Element) |
ParentView |
古い.
この要素の最も近い祖先 (すなわち VisualElement) である要素を取得します。 (継承元 Element) |
Placeholder |
Text が null または空の場合に Entry に表示されるプレースホルダー テキストを取得または設定します。 これはバインド可能なプロパティです。 |
Platform |
古い.
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 Element) |
RealParent |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Element) |
RenderHeight |
デバイス上でレンダリングされたセルの高さを取得します。 (継承元 Cell) |
StyleId |
要素を一意に識別するユーザー定義の値を取得または設定します。 (継承元 Element) |
Text |
EntryCell の Entry の内容を取得または設定します。 これはバインド可能なプロパティです。 |
VerticalTextAlignment |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 |
XAlign |
古い.
Text プロパティの水平方向の配置を取得または設定します。 これはバインド可能なプロパティです。 |
メソッド
ApplyBindings() |
BindingContext にバインディングを適用します。 (継承元 BindableObject) |
ClearValue(BindableProperty) |
|
ClearValue(BindablePropertyKey) |
|
CoerceValue(BindableProperty) |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 BindableObject) |
CoerceValue(BindablePropertyKey) |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 BindableObject) |
Descendants() |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Element) |
EffectIsAttached(String) |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Element) |
FindByName(String) |
指定した名前を持つ要素を返します。 (継承元 Element) |
ForceUpdateSize() |
セルのサイズをすぐに更新します。 (継承元 Cell) |
GetValue(BindableProperty) |
BindableProperty に含まれる値を返します。 (継承元 BindableObject) |
GetValues(BindableProperty, BindableProperty, BindableProperty) |
古い.
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 BindableObject) |
GetValues(BindableProperty, BindableProperty) |
古い.
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 BindableObject) |
IsSet(BindableProperty) |
ターゲット プロパティが存在し、設定されている場合、 |
On<T>() |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 Cell) |
OnAppearing() |
Appearing イベントが発生するたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。 (継承元 Cell) |
OnBindingContextChanged() |
バインド コンテキストが変更されたときに発生するイベント。 (継承元 Cell) |
OnChildAdded(Element) |
ChildAdded イベントを生成する必要があるたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。 (継承元 Element) |
OnChildRemoved(Element, Int32) |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 Element) |
OnChildRemoved(Element) |
古い.
ChildRemoved イベントを生成する必要があるたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。 (継承元 Element) |
OnDisappearing() |
Disappearing イベントが発生するたびに呼び出されます。 このイベントに対するクラス処理を追加するには、このメソッドを実装します。 (継承元 Cell) |
OnParentSet() |
アプリケーション開発者は、セルの親が設定されたときにアクションを実行するように、このメソッドをオーバーライドすることができます。 (継承元 Cell) |
OnPropertyChanged(String) |
バインドされたプロパティが変更されたときに呼び出されるメソッド。 (継承元 Element) |
OnPropertyChanging(String) |
アプリケーション開発者は、 |
OnTapped() |
Cell がタップされるたびに呼び出されます。 (継承元 Cell) |
RemoveBinding(BindableProperty) |
以前に設定されたバインディングを削除します。 (継承元 BindableObject) |
RemoveDynamicResource(BindableProperty) |
以前に設定された動的リソースを削除します (継承元 Element) |
SendAppearing() |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Cell) |
SendCompleted() |
Xamarin.Forms プラットフォームによる内部使用向け。 |
SendDisappearing() |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Cell) |
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 の視覚的な表現が、視覚的なレイアウトに追加されているときに発生します。 (継承元 Cell) |
BindingContextChanged |
BindingContext プロパティが変更されるたびに発生します。 (継承元 BindableObject) |
ChildAdded |
子要素が要素に追加されるたびに発生します。 (継承元 Element) |
ChildRemoved |
子要素が要素から削除されるたびに発生します。 (継承元 Element) |
Completed |
ユーザーが EntryCell のキーボード上で [完了] を押したときに発生するイベントです |
DescendantAdded |
子要素が要素サブツリーに追加されるたびに発生します。 (継承元 Element) |
DescendantRemoved |
子要素が要素サブツリーから削除されるたびに発生します。 (継承元 Element) |
Disappearing |
Cell の視覚的な表現が、視覚的なレイアウトから削除されているときに発生します。 (継承元 Cell) |
ForceUpdateSizeRequested |
Xamarin.Forms プラットフォームによる内部使用向け。 (継承元 Cell) |
PlatformSet |
古い.
ラベルと 1 行のテキスト入力フィールドを含む Cell。 (継承元 Element) |
PropertyChanged |
プロパティが変更されたときに発生します。 (継承元 BindableObject) |
PropertyChanging |
プロパティが変更されようとしているときに発生します。 (継承元 BindableObject) |
Tapped |
Cell がタップされると発生します。 (継承元 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) |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 |
SetAppThemeColor(BindableObject, BindableProperty, Color, Color) |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 |
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) |
プロパティにバインドを作成し、適用します。 |
SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String) |
古い.
式からバインドを作成し適用します。 |
SetOnAppTheme<T>(BindableObject, BindableProperty, T, T) |
ラベルと 1 行のテキスト入力フィールドを含む Cell。 |
GetPath(Cell) |
プラットフォーム レンダラーによる内部使用向け。 |
FindByName<T>(Element, String) |
|