TableSection 类

定义

TableView 的逻辑和可见部分。

public ref class TableSection sealed : Microsoft::Maui::Controls::TableSectionBase<Microsoft::Maui::Controls::Cell ^>
public sealed class TableSection : Microsoft.Maui.Controls.TableSectionBase<Microsoft.Maui.Controls.Cell>
type TableSection = class
    inherit TableSectionBase<Cell>
Public NotInheritable Class TableSection
Inherits TableSectionBase(Of Cell)
继承

构造函数

TableSection()

使用默认值创建新 TableSection

TableSection(String)

创建标题为 title 的新 TableSection

属性

BindingContext

获取或设置一个对象,该对象包含由属于此 BindableObject属性的绑定属性所面向的属性。 这是一种可绑定属性。

(继承自 BindableObject)
Count

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
Dispatcher

获取创建此可绑定对象时可用的调度程序,否则会尝试查找最近的可用调度程序(可能是窗口的/应用)。

(继承自 BindableObject)
Item[Int32]

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
TextColor

TableView 的逻辑和可见部分。

(继承自 TableSectionBase)
Title

获取或设置该标题。

(继承自 TableSectionBase)

方法

Add(IEnumerable<T>)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
Add(T)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
ApplyBindings()

将所有当前绑定应用于 BindingContext

(继承自 BindableObject)
Clear()

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
ClearValue(BindableProperty)

清除以前为可绑定属性设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除以前为其键标识的可绑定属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)

强制指定可绑定属性的值。 这是通过调用 BindableProperty.CoerceValueDelegate 指定的可绑定属性来完成的。

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)

强制指定可绑定属性的值。 这是通过调用 BindableProperty.CoerceValueDelegate 指定的可绑定属性来完成的。

(继承自 BindableObject)
Contains(T)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
CopyTo(T[], Int32)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
GetEnumerator()

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
GetValue(BindableProperty)

返回给定可绑定属性中包含的值。

(继承自 BindableObject)
IndexOf(T)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
Insert(Int32, T)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
IsSet(BindableProperty)

确定可绑定属性是否存在并设置了值。

(继承自 BindableObject)
OnBindingContextChanged()

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
OnPropertyChanged(String)

引发 PropertyChanged 事件。

(继承自 BindableObject)
OnPropertyChanging(String)

引发 PropertyChanging 事件。

(继承自 BindableObject)
Remove(T)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
RemoveAt(Int32)

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
RemoveBinding(BindableProperty)

从可绑定属性中删除以前设置的绑定。

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

将绑定分配给可绑定属性。

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

设置指定的可绑定属性的值。

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

设置指定的可绑定属性的值。

(继承自 BindableObject)
UnapplyBindings()

从当前上下文中删除所有当前绑定。

(继承自 BindableObject)

事件

BindingContextChanged

BindingContext 属性的值更改时发生。

(继承自 BindableObject)
CollectionChanged

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
PropertyChanged

在属性值更改时发生。

(继承自 BindableObject)
PropertyChanging

在属性值更改时发生。

(继承自 BindableObject)

显式接口实现

ICollection<T>.IsReadOnly

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

TableView 的逻辑和可见部分。

(继承自 BindableObject)
IEnumerable.GetEnumerator()

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
IVisualTreeElement.GetVisualChildren()

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)
IVisualTreeElement.GetVisualParent()

TableView 的逻辑和可见部分。

(继承自 TableSectionBase<T>)

扩展方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

TableView 的逻辑和可见部分。

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

TableView 的逻辑和可见部分。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

TableView 的逻辑和可见部分。

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

创建绑定并将其应用到属性。

SetBinding<TSource,TProperty>(BindableObject, BindableProperty, Func<TSource,TProperty>, BindingMode, IValueConverter, Object, String, Object, Object, Object)

在源对象上的属性和目标对象的属性之间创建绑定。

GetVisualElementWindow(IVisualTreeElement)

获取包含可视化树元素的窗口(如果元素包含在一个中)。

GetVisualTreeDescendants(IVisualTreeElement)

获取子代的整个层次结构,作为给定可视化树元素的子级列表。

GetVisualTreeElements(IVisualTreeElement, Point)

基于给定点获取可视化树元素的子元素的列表。

GetVisualTreeElements(IVisualTreeElement, Rect)

获取基于矩形的可视化树元素子项的列表。

GetVisualTreeElements(IVisualTreeElement, Double, Double)

获取基于给定 x、y 点的可视化树元素子项的列表。

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)

基于由其坐标定义的矩形(而不是像素)定义的矩形的可视化树元素子项的列表,这些坐标在平台单位中指定。

适用于