TableSectionBase<T> 類別

定義

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

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內嵌在區段中的是用來流覽至新的更深入層級。

開發人員可以將頁首和頁尾指派為字串, (頁首和頁尾) 屬性,或做為 View 來顯示 (HeaderView 和 FooterView) 。 在內部,這會使用相同的記憶體,因此只有一個或另一個可以遮住顯示。

建構函式

TableSectionBase<T>()

建構具有空白標題的新 TableSection 執行個體。

TableSectionBase<T>(String)

使用所指定 title,建構新的 TableSection 執行個體。

屬性

BindingContext

取得或設定物件,這個物件包含屬於此 BindableObject 屬性繫結屬性將設為目標的屬性。

(繼承來源 BindableObject)
Count

取得此 TableSectionBase<T> 物件中的項目數。

Dispatcher

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

(繼承來源 BindableObject)
Item[Int32]

傳回項目,儲存在此 TableSectionBase<T> 物件中 index 所指定的位置。

TextColor

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

(繼承來源 TableSectionBase)
Title

取得或設定標題。

(繼承來源 TableSectionBase)

方法

Add(IEnumerable<T>)

將項目清單新增至此 TableSectionBase<T> 物件。

Add(T)

將項目新增至此 TableSectionBase<T> 物件。

ApplyBindings()

將繫結套用至 BindingContext

(繼承來源 BindableObject)
Clear()

移除此 TableSectionBase<T> 中的所有項目。

ClearValue(BindableProperty)

清除 SetValue 針對 property 所設定的任何值。

(繼承來源 BindableObject)
ClearValue(BindablePropertyKey)

清除 SetValue 針對 propertyKey 所識別屬性設定的任何值。

(繼承來源 BindableObject)
CoerceValue(BindableProperty)

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

(繼承來源 BindableObject)
CoerceValue(BindablePropertyKey)

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

(繼承來源 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)

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

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

建立並將繫結套用至屬性。

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
已淘汰.

從運算式建立及套用繫結。

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

資料表區段,包含類型為 T 並由 Xamarin.Forms 轉譯的執行個體。

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 平台內部使用。

適用於