DataGridColumn Класс
Определение
public ref class DataGridColumn abstract : System::Windows::DependencyObject
public abstract class DataGridColumn : System.Windows.DependencyObject
type DataGridColumn = class
inherit DependencyObject
Public MustInherit Class DataGridColumn
Inherits DependencyObject
- Наследование
- Производный
Комментарии
Этот абстрактный класс предоставляет базовую функциональность для всех DataGrid столбцов.This abstract class provides the base functionality for all DataGrid columns.
Конструкторы
DataGridColumn() |
Инициализирует новый экземпляр класса DataGridColumn.Initializes a new instance of the DataGridColumn class. |
Поля
ActualWidthProperty |
Идентифицирует свойство зависимостей ActualWidth.Identifies the ActualWidth dependency property. |
CanUserReorderProperty |
Идентифицирует свойство зависимостей CanUserReorder.Identifies the CanUserReorder dependency property. |
CanUserResizeProperty |
Идентифицирует свойство зависимостей CanUserResize.Identifies the CanUserResize dependency property. |
CanUserSortProperty |
Идентифицирует свойство зависимостей CanUserSort.Identifies the CanUserSort dependency property. |
CellStyleProperty |
Идентифицирует свойство зависимостей CellStyle.Identifies the CellStyle dependency property. |
DisplayIndexProperty |
Идентифицирует свойство зависимостей DisplayIndex.Identifies the DisplayIndex dependency property. |
DragIndicatorStyleProperty |
Идентифицирует свойство зависимостей DragIndicatorStyle.Identifies the DragIndicatorStyle dependency property. |
HeaderProperty |
Идентифицирует свойство зависимостей Header.Identifies the Header dependency property. |
HeaderStringFormatProperty |
Идентифицирует свойство зависимостей HeaderStringFormat.Identifies the HeaderStringFormat dependency property. |
HeaderStyleProperty |
Идентифицирует свойство зависимостей HeaderStyle.Identifies the HeaderStyle dependency property. |
HeaderTemplateProperty |
Идентифицирует свойство зависимостей HeaderTemplate.Identifies the HeaderTemplate dependency property. |
HeaderTemplateSelectorProperty |
Идентифицирует свойство зависимостей HeaderTemplateSelector.Identifies the HeaderTemplateSelector dependency property. |
IsAutoGeneratedProperty |
Идентифицирует свойство зависимостей IsAutoGenerated.Identifies the IsAutoGenerated dependency property. |
IsFrozenProperty |
Идентифицирует свойство зависимостей IsFrozen.Identifies the IsFrozen dependency property. |
IsReadOnlyProperty |
Идентифицирует свойство зависимостей IsReadOnly.Identifies the IsReadOnly dependency property. |
MaxWidthProperty |
Идентифицирует свойство зависимостей MaxWidth.Identifies the MaxWidth dependency property. |
MinWidthProperty |
Идентифицирует свойство зависимостей MinWidth.Identifies the MinWidth dependency property. |
SortDirectionProperty |
Идентифицирует свойство зависимостей SortDirection.Identifies the SortDirection dependency property. |
SortMemberPathProperty |
Идентифицирует свойство зависимостей SortMemberPath.Identifies the SortMemberPath dependency property. |
VisibilityProperty |
Идентифицирует свойство зависимостей Visibility.Identifies the Visibility dependency property. |
WidthProperty |
Идентифицирует свойство зависимостей Width.Identifies the Width 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). |
CanUserReorder |
Получение или установка значения, определяющего, может ли пользователь изменять позицию столбца, перетаскивая его заголовок мышью.Gets or sets a value that indicates whether the user can change the column display position by dragging the column header. |
CanUserResize |
Получает или задает значение, указывающее, может ли пользователь изменять ширину столбца с помощью мыши.Gets or sets a value that indicates whether the user can adjust the column width by using the mouse. |
CanUserSort |
Получение или установка значения, определяющего, может ли пользователь сортировать столбец, щелкая его заголовок.Gets or sets a value that indicates whether the user can sort the column by clicking the column header. |
CellStyle |
Получает или задает стиль, используемый при визуализации ячеек в столбце.Gets or sets the style that is used to render cells in the column. |
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. |
DependencyObjectType |
Возвращает DependencyObjectType, который создает обертку для типа CLRCLR данного экземпляра.Gets the DependencyObjectType that wraps the CLRCLR type of this instance. (Унаследовано от DependencyObject) |
Dispatcher |
Возвращает объект Dispatcher, с которым связан этот объект DispatcherObject.Gets 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. |
DragIndicatorStyle |
Получает или задает объект стиля для применения к заголовку столбца во время операции перетаскивания.Gets or sets the style object to apply to the column header during a drag operation. |
Header |
Получение или установка содержимого заголовка столбца.Gets or sets the content of the column header. |
HeaderStringFormat |
Получает или задает шаблон формата, применяемый к содержимому заголовка столбца.Gets or sets the format pattern to apply to the content of the column header. |
HeaderStyle |
Получает или задает стиль, используемый при отображении заголовка столбца.Gets or sets the style that is used when rendering the column header. |
HeaderTemplate |
Получает или задает шаблон, определяющий визуальное представление заголовка столбца.Gets or sets the template that defines the visual representation of the column header. |
HeaderTemplateSelector |
Получает или задает объект, который выбирает, какой шаблон должен использоваться для заголовка столбца.Gets or sets the object that selects which template to use for the column header. |
IsAutoGenerated |
Получает значение, указывающее, создается ли столбец автоматически.Gets a value that indicates whether the column is auto-generated. |
IsFrozen |
Получает значение, указывающее, запрещена ли горизонтальная прокрутка столбца.Gets a value that indicates whether the column is prevented from scrolling horizontally. |
IsReadOnly |
Получение или установка значения, определяющего возможность редактирования ячеек в столбце.Gets or sets a value that indicates whether cells in the column can be edited. |
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. |
MinWidth |
Получает или задает минимальное ограничение ширины столбца.Gets or sets the minimum width constraint of the column. |
SortDirection |
Получает или задает направление сортировки столбца (по возрастанию или по убыванию).Gets or sets the sort direction (ascending or descending) of the column. |
SortMemberPath |
Получение или установка имени свойства либо иерархии имен свойств, разделенных точками, которые определяют член, по которому будет выполняться сортировка.Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to sort by. |
Visibility |
Получение или установка видимости столбца.Gets or sets the visibility of the column. |
Width |
Получение или установка ширины столбца либо режима автоматического изменения размера.Gets or sets the column width or automatic sizing mode. |
Методы
CancelCellEdit(FrameworkElement, Object) |
Приводит к восстановлению исходного неизмененного значения в изменяемой ячейке.Causes the cell being edited to revert to the original, unedited value. |
CheckAccess() |
Определяет, имеет ли вызывающий поток доступ к этому DispatcherObject.Determines 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. Это осуществляется путем вызова какой-либо функции CoerceValueCallback, указанной в метаданных свойства зависимостей, которое существует в вызывающем объекте DependencyObject.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. |
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. |
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. |
GetCellContent(DataGridRow) |
Извлекает значение свойства Content для ячейки, расположенной на пересечении данного столбца и указанной строки.Retrieves the Content property value for the cell at the intersection of this column and the specified row. |
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. |
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() |
Возвращает объект Type для текущего экземпляра.Gets 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. |
OnCoerceIsReadOnly(Boolean) |
Определяет значение свойства IsReadOnly на основе правил свойств объекта DataGrid, в котором содержится этот столбец.Determines the value of the IsReadOnly property based on the property rules of the DataGrid that contains this column. |
OnCopyingCellClipboardContent(Object) |
Вызывает событие CopyingCellClipboardContent.Raises the CopyingCellClipboardContent event. |
OnPastingCellClipboardContent(Object, Object) |
Вызывает событие PastingCellClipboardContent.Raises the PastingCellClipboardContent event. |
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. |
ReadLocalValue(DependencyProperty) |
Возвращает локальное значение свойства зависимостей, если таковое существует.Returns the local value of a dependency property, if it exists. (Унаследовано от DependencyObject) |
RefreshCellContent(FrameworkElement, String) |
При переопределении в производном классе обновляет содержимое ячейки в столбце в ответ на изменение значения свойства столбца.When overridden in a derived class, updates the contents of a cell in the column in response to a column property value that changed. |
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. |
PastingCellClipboardContent |
Происходит перед перемещением содержимого буфера обмена в ячейку.Occurs before the clipboard content is moved to the cell. |