Share via


TableSectionBase<T> 类

定义

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

public abstract class TableSectionBase<T> : Xamarin.Forms.TableSectionBase, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.Specialized.INotifyCollectionChanged where T : BindableObject
type TableSectionBase<'T (requires 'T :> BindableObject)> = class
    inherit TableSectionBase
    interface IList<'T (requires 'T :> BindableObject)>
    interface ICollection<'T (requires 'T :> BindableObject)>
    interface seq<'T (requires 'T :> BindableObject)>
    interface IEnumerable
    interface INotifyCollectionChanged

类型参数

T
继承
System.Object
TableSectionBase<T>
派生
实现
System.Collections.Generic.ICollection<T> System.Collections.Generic.IEnumerable<T> System.Collections.Generic.IList<T> System.Collections.IEnumerable System.Collections.Specialized.INotifyCollectionChanged

注解

节用于对屏幕中的单元格进行分组,它们是 的唯一有效直接子级 TableRoot。 节可以包含任何标准 Cells,包括新的 TableRoot

TableRoot使用嵌入到节中的可以导航到新的更深级别。

开发人员可以将页眉和页脚分配为字符串 (页眉和页脚) 属性,或作为视图分配,以在 HeaderView 和 FooterView) (显示。 在内部,这使用相同的存储,因此只有一个或另一个可以显示。

构造函数

TableSectionBase<T>()

使用空白标题构造新的 TableSection 实例。

TableSectionBase<T>(String)

使用指定的 title 构造新的 TableSection 实例。

属性

BindingContext

获取或设置对象,该对象包含将被属于此 BindableObject 的绑定属性设定为目标的属性。

(继承自 BindableObject)
Count

获取此 TableSectionBase<T> 对象中的项数。

Dispatcher

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

(继承自 BindableObject)
Item[Int32]

返回存储在此 TableSectionBase<T> 对象中的该位置(由 index 指定)的项。

TextColor

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

(继承自 TableSectionBase)
Title

获取或设置该标题。

(继承自 TableSectionBase)

方法

Add(IEnumerable<T>)

向此 TableSectionBase<T> 对象添加项列表。

Add(T)

TableSectionBase<T> 对象添加一个项。

ApplyBindings()

将绑定应用到 BindingContext

(继承自 BindableObject)
Clear()

删除此 TableSectionBase<T> 中的所有项。

ClearValue(BindableProperty)

清除由 SetValueproperty 设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除由 SetValuepropertyKey 标识的属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

(继承自 BindableObject)
Contains(T)

返回一个布尔值,该值指示此 TableSectionBase<T> 对象是否具有对特定对象的引用。

CopyTo(T[], Int32)

从指定索引处开始将当前集合中的元素复制到 System.Array

GetEnumerator()

返回一个循环访问此 TableSectionBase<T> 对象中的项的枚举器。

GetValue(BindableProperty)

返回 BindableProperty 中包含的值。

(继承自 BindableObject)
GetValues(BindableProperty, BindableProperty)
已过时.

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
已过时.

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
IndexOf(T)

返回 TableSectionBase<T> 对象中第一个出现的 item 的索引。

Insert(Int32, T)

将项插入此 TableSectionBase<T> 对象中的指定位置。

IsSet(BindableProperty)

如果目标属性存在并且已设置,则返回 true

(继承自 BindableObject)
OnBindingContextChanged()

TableSectionBase<T> 对象中的各项调用 SetInheritedBindingContext(BindableObject, Object) 方法,从而传递新的绑定上下文。

OnPropertyChanged(String)

从子类调用此方法以通知属性发生更改。

(继承自 BindableObject)
OnPropertyChanging(String)

从子类调用此方法以通知属性将要发生更改。

(继承自 BindableObject)
Remove(T)

TableSectionBase<T> 对象中删除指定项。

RemoveAt(Int32)

从此 TableSectionBase<T> 对象中的指定位置(由 index 指定)删除特定项。

RemoveBinding(BindableProperty)

删除先前设置的绑定。

(继承自 BindableObject)
SetBinding(BindableProperty, BindingBase)

向属性分配绑定。

(继承自 BindableObject)
SetValue(BindableProperty, Object)

设置指定属性的值。

(继承自 BindableObject)
SetValue(BindablePropertyKey, Object)

设置 propertyKey 的值。

(继承自 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
UnapplyBindings()

不应用所有以前设置的绑定。

(继承自 BindableObject)

事件

BindingContextChanged

只要 BindingContext 属性更改就会引发。

(继承自 BindableObject)
CollectionChanged

向此 TableSectionBase<T> 对象添加一个或多个项或从中删除一个或多个项时引发的事件。

PropertyChanged

在属性已更改时引发。

(继承自 BindableObject)
PropertyChanging

在属性将要更改时引发。

(继承自 BindableObject)

显式接口实现

ICollection<T>.IsReadOnly

返回 false;其中的对象集合可以更改。

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
IEnumerable.GetEnumerator()

返回一个循环访问 TableSectionBase<T> 对象中的对象集合的枚举器。

扩展方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

包含由 Xamarin.Forms 呈现的类型 T 实例的表部分。

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 呈现的类型 T 实例的表部分。

ForEach<T>(IEnumerable<T>, Action<T>)

供 Xamarin.Forms 平台内部使用。

GroupToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

供 Xamarin.Forms 平台内部使用。

IndexOf<T>(IEnumerable<T>, T)

供 Xamarin.Forms 平台内部使用。

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

供 Xamarin.Forms 平台内部使用。

Prepend<T>(IEnumerable<T>, T)

供 Xamarin.Forms 平台内部使用。

适用于