DataGridBoundColumn 類別

定義

儲存為資料行的基底類別,可繫結至 DataGrid 的資料來源中的屬性。Serves as the base class for columns that can bind to a property in the data source of a DataGrid.

public ref class DataGridBoundColumn abstract : System::Windows::Controls::DataGridColumn
public abstract class DataGridBoundColumn : System.Windows.Controls.DataGridColumn
type DataGridBoundColumn = class
    inherit DataGridColumn
Public MustInherit Class DataGridBoundColumn
Inherits DataGridColumn
繼承
衍生

建構函式

DataGridBoundColumn()

初始化 DataGridBoundColumn 類別的新執行個體。Initializes a new instance of the DataGridBoundColumn class.

欄位

EditingElementStyleProperty

識別 EditingElementStyle 相依性屬性。Identifies the EditingElementStyle dependency property.

ElementStyleProperty

識別 ElementStyle 相依性屬性。Identifies the ElementStyle dependency property.

屬性

ActualWidth

取得資料行的目前寬度 (以 裝置獨立單位 (每單位 1/96 英吋)device-independent units (1/96th inch per unit) 為單位)。Gets the current width of the column, in 裝置獨立單位 (每單位 1/96 英吋)device-independent units (1/96th inch per unit).

(繼承來源 DataGridColumn)
Binding

取得或設定可產生欄與資料來源中屬性之關聯的繫結。Gets or sets the binding that associates the column with a property in the data source.

CanUserReorder

取得或設定值,該值指出使用者是否可藉由拖曳欄標題來變更欄顯示位置。Gets or sets a value that indicates whether the user can change the column display position by dragging the column header.

(繼承來源 DataGridColumn)
CanUserResize

取得或設定值,這個值表示使用者是否可以使用滑鼠來調整資料行寬度。Gets or sets a value that indicates whether the user can adjust the column width by using the mouse.

(繼承來源 DataGridColumn)
CanUserSort

取得或設定值,該值指出使用者是否可藉由按一下欄標題來排序欄。Gets or sets a value that indicates whether the user can sort the column by clicking the column header.

(繼承來源 DataGridColumn)
CellStyle

取得或設定用於呈現資料行中儲存格的樣式。Gets or sets the style that is used to render cells in the column.

(繼承來源 DataGridColumn)
ClipboardContentBinding

取得或設定當取得或設定剪貼簿的儲存格內容時,要使用的繫結物件。Gets or sets the binding object to use when getting or setting cell content for the clipboard.

DataGridOwner

取得包含此資料行的 DataGrid 控制項。Gets the DataGrid control that contains this column.

(繼承來源 DataGridColumn)
DependencyObjectType

取得包裝此執行個體之 CLRCLR 型別的 DependencyObjectTypeGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(繼承來源 DependencyObject)
Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)
DisplayIndex

取得或設定相對於 DataGrid 中之其他資料行的資料行位置。Gets or sets the display position of the column relative to the other columns in the DataGrid.

(繼承來源 DataGridColumn)
DragIndicatorStyle

取得或設定在拖曳作業期間要套用至資料行標題的樣式物件。Gets or sets the style object to apply to the column header during a drag operation.

(繼承來源 DataGridColumn)
EditingElementStyle

取得或設定樣式,當呈現資料行針對處於編輯模式之儲存格所顯示的項目時,會使用這個樣式。Gets or sets the style that is used when rendering the element that the column displays for a cell in editing mode.

ElementStyle

取得或設定樣式,當呈現資料行針對不處於編輯模式之儲存格所顯示的項目時,會使用這個樣式。Gets or sets the style that is used when rendering the element that the column displays for a cell that is not in editing mode.

Header

取得或設定欄標題的內容。Gets or sets the content of the column header.

(繼承來源 DataGridColumn)
HeaderStringFormat

取得或設定格式模式,以套用到欄標題的內容。Gets or sets the format pattern to apply to the content of the column header.

(繼承來源 DataGridColumn)
HeaderStyle

取得或設定呈現欄標題時所用的樣式。Gets or sets the style that is used when rendering the column header.

(繼承來源 DataGridColumn)
HeaderTemplate

取得或設定範本,以定義欄標題的視覺表示方式。Gets or sets the template that defines the visual representation of the column header.

(繼承來源 DataGridColumn)
HeaderTemplateSelector

取得或設定物件,以選取要用於欄標題的範本。Gets or sets the object that selects which template to use for the column header.

(繼承來源 DataGridColumn)
IsAutoGenerated

取得值,這個值會指出資料行是否自動產生。Gets a value that indicates whether the column is auto-generated.

(繼承來源 DataGridColumn)
IsFrozen

取得值,這個值會指出資料行是否會避免水平捲動。Gets a value that indicates whether the column is prevented from scrolling horizontally.

(繼承來源 DataGridColumn)
IsReadOnly

取得或設定值,該值指出是否可編輯欄中的儲存格。Gets or sets a value that indicates whether cells in the column can be edited.

(繼承來源 DataGridColumn)
IsSealed

取得值,這個值表示此執行個體目前是否已密封 (唯讀)。Gets a value that indicates whether this instance is currently sealed (read-only).

(繼承來源 DependencyObject)
MaxWidth

取得或設定資料行的最大寬度條件約束。Gets or sets the maximum width constraint of the column.

(繼承來源 DataGridColumn)
MinWidth

取得或設定資料行的最小寬度條件約束。Gets or sets the minimum width constraint of the column.

(繼承來源 DataGridColumn)
SortDirection

取得或設定欄的排序方向 (遞增或遞減)。Gets or sets the sort direction (ascending or descending) of the column.

(繼承來源 DataGridColumn)
SortMemberPath

取得或設定屬性名稱或以句號分隔的屬性名稱階層,要當做排序依據成員。Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to sort by.

(繼承來源 DataGridColumn)
Visibility

取得或設定欄的可見性。Gets or sets the visibility of the column.

(繼承來源 DataGridColumn)
Width

取得或設定欄寬或自動調整模式。Gets or sets the column width or automatic sizing mode.

(繼承來源 DataGridColumn)

方法

CancelCellEdit(FrameworkElement, Object)

造成正在編輯的儲存格還原成原始、未編輯的值。Causes the cell being edited to revert to the original, unedited value.

(繼承來源 DataGridColumn)
CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)
ClearValue(DependencyProperty)

清除屬性的區域數值。Clears the local value of a property. 要清除的屬性是由 DependencyProperty 識別項所指定。The property to be cleared is specified by a DependencyProperty identifier.

(繼承來源 DependencyObject)
ClearValue(DependencyPropertyKey)

清除唯讀屬性的區域數值。Clears the local value of a read-only property. 要清除的屬性是由 DependencyPropertyKey 所指定。The property to be cleared is specified by a DependencyPropertyKey.

(繼承來源 DependencyObject)
CoerceValue(DependencyProperty)

強制轉型所指定相依性屬性的值。Coerces the value of the specified dependency property. 完成方式是叫用存在於呼叫 DependencyObject 之相依性屬性的屬性中繼資料中所指定的任何 CoerceValueCallback 函式。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(繼承來源 DependencyObject)
CommitCellEdit(FrameworkElement)

在結束儲存格編輯模式之前執行任何必要的驗證。Performs any required validation before exiting cell editing mode.

(繼承來源 DataGridColumn)
Equals(Object)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(繼承來源 DependencyObject)
GenerateEditingElement(DataGridCell, Object)

在衍生類別中覆寫時,取得繫結至資料行之 Binding 屬性值的編輯項目。When overridden in a derived class, gets an editing element that is bound to the Binding property value of the column.

(繼承來源 DataGridColumn)
GenerateElement(DataGridCell, Object)

在衍生類別中覆寫時,取得繫結至資料行之 Binding 屬性值的唯讀項目。When overridden in a derived class, gets a read-only element that is bound to the Binding property value of the column.

(繼承來源 DataGridColumn)
GetCellContent(DataGridRow)

針對位於這個資料行與所指定資料列交集處的儲存格,擷取該儲存格的 Content 屬性值。Retrieves the Content property value for the cell at the intersection of this column and the specified row.

(繼承來源 DataGridColumn)
GetCellContent(Object)

如果儲存格與這個資料行以及表示指定之資料項目的資料列相交,則取得該儲存格的 Content 屬性值。Gets the Content property value for the cell at the intersection of this column and the row that represents the specified data item.

(繼承來源 DataGridColumn)
GetHashCode()

取得這個 DependencyObject 的雜湊碼。Gets a hash code for this DependencyObject.

(繼承來源 DependencyObject)
GetLocalValueEnumerator()

建立特定的列舉值,以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(繼承來源 DependencyObject)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetValue(DependencyProperty)

傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(繼承來源 DependencyObject)
InvalidateProperty(DependencyProperty)

重新評估指定相依性屬性的有效值。Re-evaluates the effective value for the specified dependency property.

(繼承來源 DependencyObject)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
NotifyPropertyChanged(String)

通知包含此資料行的 DataGrid,資料行屬性已變更。Notifies the DataGrid that contains this column that a column property has changed.

(繼承來源 DataGridColumn)
OnBindingChanged(BindingBase, BindingBase)

DataGrid 屬性的值變更時告知 BindingNotifies the DataGrid when the value of the Binding property changes.

OnCoerceIsReadOnly(Boolean)

根據包含此資料行之資料格的屬性規則,判斷 IsReadOnly 屬性的值。Determines the value of the IsReadOnly property based on property rules from the data grid that contains this column.

OnCopyingCellClipboardContent(Object)

引發 CopyingCellClipboardContent 事件。Raises the CopyingCellClipboardContent event.

(繼承來源 DataGridColumn)
OnPastingCellClipboardContent(Object, Object)

引發 PastingCellClipboardContent 事件。Raises the PastingCellClipboardContent event.

(繼承來源 DataGridColumn)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

每當這個 DependencyObject 上任何相依性屬性的有效值已更新時叫用。Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. 已變更的特定相依性屬性會在事件資料中報告。The specific dependency property that changed is reported in the event data.

(繼承來源 DependencyObject)
PrepareCellForEdit(FrameworkElement, RoutedEventArgs)

在衍生類別中覆寫時,根據編輯需要來設定儲存格內容。When overridden in a derived class, sets cell content as needed for editing.

(繼承來源 DataGridColumn)
ReadLocalValue(DependencyProperty)

傳回相依性屬性的區域值 (如果存在)。Returns the local value of a dependency property, if it exists.

(繼承來源 DependencyObject)
RefreshCellContent(FrameworkElement, String)

為了回應繫結變更而重建資料行中的儲存格內容。Rebuilds the contents of a cell in the column in response to a binding change.

SetCurrentValue(DependencyProperty, Object)

設定相依性屬性的值,而不需要變更其值來源。Sets the value of a dependency property without changing its value source.

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。Sets the local value of a dependency property, specified by its dependency property identifier.

(繼承來源 DependencyObject)
SetValue(DependencyPropertyKey, Object)

設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(繼承來源 DependencyObject)
ShouldSerializeProperty(DependencyProperty)

傳回值,這個值表示序列化程序是否應該序列化所提供相依性屬性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(繼承來源 DependencyObject)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

事件

CopyingCellClipboardContent

發生於準備好儲存格剪貼簿內容之後。Occurs after the cell clipboard content is prepared.

(繼承來源 DataGridColumn)
PastingCellClipboardContent

發生在將 [剪貼簿] 內容移至儲存格之前。Occurs before the clipboard content is moved to the cell.

(繼承來源 DataGridColumn)

適用於

另請參閱