Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
DataGridViewHeaderCell Class

Contains functionality common to row header cells and column header cells.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
Visual Basic
Public Class DataGridViewHeaderCell _
    Inherits DataGridViewCell
C#
public class DataGridViewHeaderCell : DataGridViewCell
Visual C++
public ref class DataGridViewHeaderCell : public DataGridViewCell
F#
type DataGridViewHeaderCell =  
    class
        inherit DataGridViewCell
    end

The DataGridViewHeaderCell type exposes the following members.

  NameDescription
Public methodDataGridViewHeaderCellInitializes a new instance of the DataGridViewHeaderCell class.
Top
  NameDescription
Public propertyAccessibilityObjectGets the DataGridViewCell..::.DataGridViewCellAccessibleObject assigned to the DataGridViewCell. (Inherited from DataGridViewCell.)
Protected propertyButtonStateGets the buttonlike visual state of the header cell.
Public propertyColumnIndexGets the column index for this cell. (Inherited from DataGridViewCell.)
Public propertyContentBoundsGets the bounding rectangle that encloses the cell's content area. (Inherited from DataGridViewCell.)
Public propertyContextMenuStripGets or sets the shortcut menu associated with the cell. (Inherited from DataGridViewCell.)
Public propertyDataGridViewGets the DataGridView control associated with this element. (Inherited from DataGridViewElement.)
Public propertyDefaultNewRowValueGets the default value for a cell in the row for new records. (Inherited from DataGridViewCell.)
Public propertyDisplayedGets a value that indicates whether the cell is currently displayed on-screen. (Overrides DataGridViewCell..::.Displayed.)
Public propertyEditedFormattedValueGets the current, formatted value of the cell, regardless of whether the cell is in edit mode and the value has not been committed. (Inherited from DataGridViewCell.)
Public propertyEditTypeGets the type of the cell's hosted editing control. (Inherited from DataGridViewCell.)
Public propertyErrorIconBoundsGets the bounds of the error icon for the cell. (Inherited from DataGridViewCell.)
Public propertyErrorTextGets or sets the text describing an error condition associated with the cell. (Inherited from DataGridViewCell.)
Public propertyFormattedValueGets the value of the cell as formatted for display. (Inherited from DataGridViewCell.)
Public propertyFormattedValueTypeGets the type of the formatted value of the cell. (Overrides DataGridViewCell..::.FormattedValueType.)
Public propertyFrozenGets a value indicating whether the cell is frozen. (Overrides DataGridViewCell..::.Frozen.)
Public propertyHasStyleGets a value indicating whether the Style property has been set. (Inherited from DataGridViewCell.)
Public propertyInheritedStateGets the current state of the cell as inherited from the state of its row and column. (Inherited from DataGridViewCell.)
Public propertyInheritedStyleGets the style currently applied to the cell. (Inherited from DataGridViewCell.)
Public propertyIsInEditModeGets a value indicating whether this cell is currently being edited. (Inherited from DataGridViewCell.)
Public propertyOwningColumnGets the column that contains this cell. (Inherited from DataGridViewCell.)
Public propertyOwningRowGets the row that contains this cell. (Inherited from DataGridViewCell.)
Public propertyPreferredSizeGets the size, in pixels, of a rectangular area into which the cell can fit. (Inherited from DataGridViewCell.)
Public propertyReadOnlyGets a value indicating whether the header cell is read-only. (Overrides DataGridViewCell..::.ReadOnly.)
Public propertyResizableGets a value indicating whether the cell is resizable. (Overrides DataGridViewCell..::.Resizable.)
Public propertyRowIndexGets the index of the cell's parent row. (Inherited from DataGridViewCell.)
Public propertySelectedGets or sets a value indicating whether the cell is selected. (Overrides DataGridViewCell..::.Selected.)
Public propertySizeGets the size of the cell. (Inherited from DataGridViewCell.)
Public propertyStateGets the user interface (UI) state of the element. (Inherited from DataGridViewElement.)
Public propertyStyleGets or sets the style for the cell. (Inherited from DataGridViewCell.)
Public propertyTagGets or sets the object that contains supplemental data about the cell. (Inherited from DataGridViewCell.)
Public propertyToolTipTextGets or sets the ToolTip text associated with this cell. (Inherited from DataGridViewCell.)
Public propertyValueGets or sets the value associated with this cell. (Inherited from DataGridViewCell.)
Public propertyValueTypeGets the type of the value stored in the cell. (Overrides DataGridViewCell..::.ValueType.)
Public propertyVisibleGets a value indicating whether or not the cell is visible. (Overrides DataGridViewCell..::.Visible.)
Top
  NameDescription
Public methodAdjustCellBorderStyleModifies the input cell border style according to the specified criteria. (Inherited from DataGridViewCell.)
Protected methodBorderWidthsReturns a Rectangle that represents the widths of all the cell margins. (Inherited from DataGridViewCell.)
Protected methodClickUnsharesRowIndicates whether the cell's row will be unshared when the cell is clicked. (Inherited from DataGridViewCell.)
Public methodCloneCreates an exact copy of this cell. (Overrides DataGridViewCell..::.Clone()()().)
Protected methodContentClickUnsharesRowIndicates whether the cell's row will be unshared when the cell's content is clicked. (Inherited from DataGridViewCell.)
Protected methodContentDoubleClickUnsharesRowIndicates whether the cell's row will be unshared when the cell's content is double-clicked. (Inherited from DataGridViewCell.)
Protected methodCreateAccessibilityInstanceCreates a new accessible object for the DataGridViewCell. (Inherited from DataGridViewCell.)
Public methodDetachEditingControlRemoves the cell's editing control from the DataGridView. (Inherited from DataGridViewCell.)
Public methodDispose()()()Releases all resources used by the DataGridViewCell. (Inherited from DataGridViewCell.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the DataGridViewHeaderCell and optionally releases the managed resources. (Overrides DataGridViewCell..::.Dispose(Boolean).)
Protected methodDoubleClickUnsharesRowIndicates whether the cell's row will be unshared when the cell is double-clicked. (Inherited from DataGridViewCell.)
Protected methodEnterUnsharesRowIndicates whether the parent row will be unshared when the focus moves to the cell. (Inherited from DataGridViewCell.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases the unmanaged resources and performs other cleanup operations before the DataGridViewCell is reclaimed by garbage collection. (Inherited from DataGridViewCell.)
Protected methodGetClipboardContentRetrieves the formatted value of the cell to copy to the Clipboard. (Inherited from DataGridViewCell.)
Public methodGetContentBounds(Int32)Returns the bounding rectangle that encloses the cell's content area using a default Graphics and cell style currently in effect for the cell. (Inherited from DataGridViewCell.)
Protected methodGetContentBounds(Graphics, DataGridViewCellStyle, Int32)Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified Graphics and cell style. (Inherited from DataGridViewCell.)
Public methodGetEditedFormattedValueReturns the current, formatted value of the cell, regardless of whether the cell is in edit mode and the value has not been committed. (Inherited from DataGridViewCell.)
Protected methodGetErrorIconBoundsReturns the bounding rectangle that encloses the cell's error icon, if one is displayed. (Inherited from DataGridViewCell.)
Protected methodGetErrorTextReturns a string that represents the error for the cell. (Inherited from DataGridViewCell.)
Protected methodGetFormattedValueGets the value of the cell as formatted for display. (Inherited from DataGridViewCell.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetInheritedContextMenuStripGets the shortcut menu of the header cell. (Overrides DataGridViewCell..::.GetInheritedContextMenuStrip(Int32).)
Public methodGetInheritedStateReturns a value indicating the current state of the cell as inherited from the state of its row or column. (Overrides DataGridViewCell..::.GetInheritedState(Int32).)
Public methodGetInheritedStyleGets the style applied to the cell. (Inherited from DataGridViewCell.)
Protected methodGetPreferredSizeCalculates the preferred size, in pixels, of the cell. (Inherited from DataGridViewCell.)
Protected methodGetSizeGets the size of the cell. (Overrides DataGridViewCell..::.GetSize(Int32).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetValueGets the value of the cell. (Overrides DataGridViewCell..::.GetValue(Int32).)
Public methodInitializeEditingControlInitializes the control used to edit the cell. (Inherited from DataGridViewCell.)
Protected methodKeyDownUnsharesRowIndicates whether the parent row is unshared if the user presses a key while the focus is on the cell. (Inherited from DataGridViewCell.)
Public methodKeyEntersEditModeDetermines if edit mode should be started based on the given key. (Inherited from DataGridViewCell.)
Protected methodKeyPressUnsharesRowIndicates whether a row will be unshared if a key is pressed while a cell in the row has focus. (Inherited from DataGridViewCell.)
Protected methodKeyUpUnsharesRowIndicates whether the parent row is unshared when the user releases a key while the focus is on the cell. (Inherited from DataGridViewCell.)
Protected methodLeaveUnsharesRowIndicates whether a row will be unshared when the focus leaves a cell in the row. (Inherited from DataGridViewCell.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMouseClickUnsharesRowIndicates whether a row will be unshared if the user clicks a mouse button while the pointer is on a cell in the row. (Inherited from DataGridViewCell.)
Protected methodMouseDoubleClickUnsharesRowIndicates whether a row will be unshared if the user double-clicks a cell in the row. (Inherited from DataGridViewCell.)
Protected methodMouseDownUnsharesRowIndicates whether a row will be unshared when the mouse button is held down while the pointer is on a cell in the row. (Overrides DataGridViewCell..::.MouseDownUnsharesRow(DataGridViewCellMouseEventArgs).)
Protected methodMouseEnterUnsharesRowIndicates whether a row will be unshared when the mouse pointer moves over a cell in the row. (Overrides DataGridViewCell..::.MouseEnterUnsharesRow(Int32).)
Protected methodMouseLeaveUnsharesRowIndicates whether a row will be unshared when the mouse pointer leaves the row. (Overrides DataGridViewCell..::.MouseLeaveUnsharesRow(Int32).)
Protected methodMouseMoveUnsharesRowIndicates whether a row will be unshared when the mouse pointer moves over a cell in the row. (Inherited from DataGridViewCell.)
Protected methodMouseUpUnsharesRowIndicates whether a row will be unshared when the mouse button is released while the pointer is on a cell in the row. (Overrides DataGridViewCell..::.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs).)
Protected methodOnClickCalled when the cell is clicked. (Inherited from DataGridViewCell.)
Protected methodOnContentClickCalled when the cell's contents are clicked. (Inherited from DataGridViewCell.)
Protected methodOnContentDoubleClickCalled when the cell's contents are double-clicked. (Inherited from DataGridViewCell.)
Protected methodOnDataGridViewChangedCalled when the DataGridView property of the cell changes. (Inherited from DataGridViewCell.)
Protected methodOnDoubleClickCalled when the cell is double-clicked. (Inherited from DataGridViewCell.)
Protected methodOnEnterCalled when the focus moves to a cell. (Inherited from DataGridViewCell.)
Protected methodOnKeyDownCalled when a character key is pressed while the focus is on a cell. (Inherited from DataGridViewCell.)
Protected methodOnKeyPressCalled when a key is pressed while the focus is on a cell. (Inherited from DataGridViewCell.)
Protected methodOnKeyUpCalled when a character key is released while the focus is on a cell. (Inherited from DataGridViewCell.)
Protected methodOnLeaveCalled when the focus moves from a cell. (Inherited from DataGridViewCell.)
Protected methodOnMouseClickCalled when the user clicks a mouse button while the pointer is on a cell. (Inherited from DataGridViewCell.)
Protected methodOnMouseDoubleClickCalled when the user double-clicks a mouse button while the pointer is on a cell. (Inherited from DataGridViewCell.)
Protected methodOnMouseDownCalled when the mouse button is held down while the pointer is on a cell. (Overrides DataGridViewCell..::.OnMouseDown(DataGridViewCellMouseEventArgs).)
Protected methodOnMouseEnterCalled when the mouse pointer enters the cell. (Overrides DataGridViewCell..::.OnMouseEnter(Int32).)
Protected methodOnMouseLeaveCalled when the mouse pointer leaves the cell. (Overrides DataGridViewCell..::.OnMouseLeave(Int32).)
Protected methodOnMouseMoveCalled when the mouse pointer moves within a cell. (Inherited from DataGridViewCell.)
Protected methodOnMouseUpCalled when the mouse button is released while the pointer is over the cell. (Overrides DataGridViewCell..::.OnMouseUp(DataGridViewCellMouseEventArgs).)
Protected methodPaintPaints the current DataGridViewHeaderCell. (Overrides DataGridViewCell..::.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts).)
Protected methodPaintBorderPaints the border of the current DataGridViewCell. (Inherited from DataGridViewCell.)
Protected methodPaintErrorIconPaints the error icon of the current DataGridViewCell. (Inherited from DataGridViewCell.)
Public methodParseFormattedValueConverts a value formatted for display to an actual cell value. (Inherited from DataGridViewCell.)
Public methodPositionEditingControlSets the location and size of the editing control hosted by a cell in the DataGridView control. (Inherited from DataGridViewCell.)
Public methodPositionEditingPanelSets the location and size of the editing panel hosted by the cell, and returns the normal bounds of the editing control within the editing panel. (Inherited from DataGridViewCell.)
Protected methodRaiseCellClickRaises the DataGridView..::.CellClick event. (Inherited from DataGridViewElement.)
Protected methodRaiseCellContentClickRaises the DataGridView..::.CellContentClick event. (Inherited from DataGridViewElement.)
Protected methodRaiseCellContentDoubleClickRaises the DataGridView..::.CellContentDoubleClick event. (Inherited from DataGridViewElement.)
Protected methodRaiseCellValueChangedRaises the DataGridView..::.CellValueChanged event. (Inherited from DataGridViewElement.)
Protected methodRaiseDataErrorRaises the DataGridView..::.DataError event. (Inherited from DataGridViewElement.)
Protected methodRaiseMouseWheelRaises the Control..::.MouseWheel event. (Inherited from DataGridViewElement.)
Protected methodSetValueSets the value of the cell. (Inherited from DataGridViewCell.)
Public methodToStringReturns a string that describes the current object. (Overrides DataGridViewCell..::.ToString()()().)
Top

This class is a base class for other header cell classes, such as DataGridViewRowHeaderCell and DataGridViewColumnHeaderCell. To create custom row header icons or column header glyphs, inherit from the DataGridViewHeaderCell class and add functionality to paint your own icon or glyph.

Notes to Inheritors

When you derive from DataGridViewHeaderCell and add new properties to the derived class, be sure to override the Clone method to copy the new properties during cloning operations. You should also call the base class's Clone method so that the properties of the base class are copied to the new cell.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Biblioteca de clases de .NET Framework
DataGridViewHeaderCell (Clase)

Contiene la funcionalidad común a las celdas de encabezado de fila y a las celdas de encabezado de columna.

Espacio de nombres:  System.Windows.Forms
Ensamblado:  System.Windows.Forms (en System.Windows.Forms.dll)
Visual Basic
Public Class DataGridViewHeaderCell _
    Inherits DataGridViewCell
C#
public class DataGridViewHeaderCell : DataGridViewCell
Visual C++
public ref class DataGridViewHeaderCell : public DataGridViewCell
F#
type DataGridViewHeaderCell =  
    class
        inherit DataGridViewCell
    end

El tipo DataGridViewHeaderCell expone los siguientes miembros.

  NombreDescripción
Método públicoDataGridViewHeaderCellInicializa una nueva instancia de la clase DataGridViewHeaderCell.
Arriba
  NombreDescripción
Propiedad públicaAccessibilityObjectObtiene el objeto DataGridViewCell..::.DataGridViewCellAccessibleObject asignado a DataGridViewCell. (Se hereda de DataGridViewCell).
Propiedad protegidaButtonStateObtiene el estado visual similar a un botón de la celda de encabezado.
Propiedad públicaColumnIndexObtiene el índice de columna de esta celda. (Se hereda de DataGridViewCell).
Propiedad públicaContentBoundsObtiene el rectángulo delimitador que rodea el área de contenido de la celda. (Se hereda de DataGridViewCell).
Propiedad públicaContextMenuStripObtiene o establece el menú contextual asociado a la celda. (Se hereda de DataGridViewCell).
Propiedad públicaDataGridViewObtiene el control DataGridView asociado a este elemento. (Se hereda de DataGridViewElement).
Propiedad públicaDefaultNewRowValueObtiene el valor predeterminado de una celda de la fila de nuevos registros. (Se hereda de DataGridViewCell).
Propiedad públicaDisplayedObtiene un valor que indica si la celda se muestra actualmente en pantalla. (Invalida a DataGridViewCell..::.Displayed).
Propiedad públicaEditedFormattedValueObtiene el valor actual con formato de la celda, con independencia de si la celda está en modo de edición y no se ha confirmado el valor. (Se hereda de DataGridViewCell).
Propiedad públicaEditTypeObtiene el tipo del control de edición hospedado de la celda. (Se hereda de DataGridViewCell).
Propiedad públicaErrorIconBoundsObtiene los límites del icono de error para la celda. (Se hereda de DataGridViewCell).
Propiedad públicaErrorTextObtiene o establece el texto que describe una condición de error asociada a la celda. (Se hereda de DataGridViewCell).
Propiedad públicaFormattedValueObtiene el valor de la celda con el formato para mostrar. (Se hereda de DataGridViewCell).
Propiedad públicaFormattedValueTypeObtiene el tipo del valor con formato de la celda. (Invalida a DataGridViewCell..::.FormattedValueType).
Propiedad públicaFrozenObtiene un valor que indica si la celda está inmovilizada. (Invalida a DataGridViewCell..::.Frozen).
Propiedad públicaHasStyleObtiene un valor que indica si se ha establecido la propiedad Style. (Se hereda de DataGridViewCell).
Propiedad públicaInheritedStateObtiene el estado actual de la celda tal como lo hereda del estado de su fila y columna. (Se hereda de DataGridViewCell).
Propiedad públicaInheritedStyleObtiene el estilo aplicado actualmente a la celda. (Se hereda de DataGridViewCell).
Propiedad públicaIsInEditModeObtiene un valor que indica si actualmente se está editando la celda. (Se hereda de DataGridViewCell).
Propiedad públicaOwningColumnObtiene la columna que contiene esta celda. (Se hereda de DataGridViewCell).
Propiedad públicaOwningRowObtiene la fila que contiene esta celda. (Se hereda de DataGridViewCell).
Propiedad públicaPreferredSizeObtiene el tamaño, en píxeles, de un área rectangular en la que cabe la celda. (Se hereda de DataGridViewCell).
Propiedad públicaReadOnlyObtiene un valor que indica si la celda de encabezado es de sólo lectura. (Invalida a DataGridViewCell..::.ReadOnly).
Propiedad públicaResizableObtiene un valor que indica si se puede cambiar el tamaño de la celda. (Invalida a DataGridViewCell..::.Resizable).
Propiedad públicaRowIndexObtiene el índice de la fila primaria de la celda. (Se hereda de DataGridViewCell).
Propiedad públicaSelectedObtiene o establece un valor que indica si la celda está seleccionada. (Invalida a DataGridViewCell..::.Selected).
Propiedad públicaSizeObtiene el tamaño de la celda. (Se hereda de DataGridViewCell).
Propiedad públicaStateObtiene el estado de la interfaz de usuario del elemento. (Se hereda de DataGridViewElement).
Propiedad públicaStyleObtiene o establece el estilo de la celda. (Se hereda de DataGridViewCell).
Propiedad públicaTagObtiene o establece el objeto que contiene datos complementarios sobre la celda. (Se hereda de DataGridViewCell).
Propiedad públicaToolTipTextObtiene o establece el texto de información sobre herramientas asociado a esta celda. (Se hereda de DataGridViewCell).
Propiedad públicaValueObtiene o establece el valor asociado a esta celda. (Se hereda de DataGridViewCell).
Propiedad públicaValueTypeObtiene el tipo del valor almacenado en la celda. (Invalida a DataGridViewCell..::.ValueType).
Propiedad públicaVisibleObtiene un valor que indica si la celda está visible o no. (Invalida a DataGridViewCell..::.Visible).
Arriba
  NombreDescripción
Método públicoAdjustCellBorderStyleModifica el estilo de borde de celda de entrada según los criterios especificados. (Se hereda de DataGridViewCell).
Método protegidoBorderWidthsDevuelve un objeto Rectangle que representa el ancho de todos los márgenes de la celda. (Se hereda de DataGridViewCell).
Método protegidoClickUnsharesRowIndica si la fila de la celda dejará de estar compartida al hacer clic en la celda. (Se hereda de DataGridViewCell).
Método públicoCloneCrea una copia exacta de esta celda. (Invalida a DataGridViewCell..::.Clone()()()).
Método protegidoContentClickUnsharesRowIndica si la fila de la celda dejará de estar compartida al hacer clic en el contenido de la celda. (Se hereda de DataGridViewCell).
Método protegidoContentDoubleClickUnsharesRowIndica si la fila de la celda dejará de estar compartida al hacer doble clic en el contenido de la celda. (Se hereda de DataGridViewCell).
Método protegidoCreateAccessibilityInstanceCrea un nuevo objeto accesible para la celda DataGridViewCell. (Se hereda de DataGridViewCell).
Método públicoDetachEditingControlQuita el control de edición de la celda de DataGridView. (Se hereda de DataGridViewCell).
Método públicoDispose()()()Libera todos los recursos utilizados por el objeto DataGridViewCell. (Se hereda de DataGridViewCell).
Método protegidoDispose(Boolean)Libera los recursos no administrados usados por DataGridViewHeaderCell y, opcionalmente, los recursos administrados. (Invalida a DataGridViewCell..::.Dispose(Boolean)).
Método protegidoDoubleClickUnsharesRowIndica si la fila de la celda dejará de estar compartida al hacer doble clic en la celda. (Se hereda de DataGridViewCell).
Método protegidoEnterUnsharesRowIndica si la fila primaria va a dejar de estar compartida cuando el foco se desplace a la celda. (Se hereda de DataGridViewCell).
Método públicoEquals(Object)Determina si el objeto Object especificado es igual al objeto Object actual. (Se hereda de Object).
Método protegidoFinalizeLibera los recursos no administrados y realiza otras operaciones de limpieza antes de que el recolector de elementos no utilizados reclame DataGridViewCell. (Se hereda de DataGridViewCell).
Método protegidoGetClipboardContentRecupera el valor con formato de la celda que copiar en el Clipboard. (Se hereda de DataGridViewCell).
Método públicoGetContentBounds(Int32)Devuelve el rectángulo delimitador que rodea el área de contenido de la celda utilizando un objeto Graphics predeterminado y el estilo de celda actualmente en vigor para la celda. (Se hereda de DataGridViewCell).
Método protegidoGetContentBounds(Graphics, DataGridViewCellStyle, Int32)Devuelve el rectángulo delimitador que rodea el área de contenido de la celda, que se calcula utilizando el objeto Graphics especificado y el estilo de celda. (Se hereda de DataGridViewCell).
Método públicoGetEditedFormattedValueDevuelve el valor actual con formato de la celda, con independencia de si la celda está en modo de edición y no se ha confirmado el valor. (Se hereda de DataGridViewCell).
Método protegidoGetErrorIconBoundsDevuelve el rectángulo delimitador que rodea el icono de error de la celda, si se muestra alguno. (Se hereda de DataGridViewCell).
Método protegidoGetErrorTextDevuelve una cadena que representa el error para la celda. (Se hereda de DataGridViewCell).
Método protegidoGetFormattedValueObtiene el valor de la celda con el formato para mostrar. (Se hereda de DataGridViewCell).
Método públicoGetHashCodeActúa como función hash para un tipo concreto. (Se hereda de Object).
Método públicoGetInheritedContextMenuStripObtiene el menú contextual de la celda de encabezado. (Invalida a DataGridViewCell..::.GetInheritedContextMenuStrip(Int32)).
Método públicoGetInheritedStateDevuelve un valor que indica el estado actual de la celda heredado del estado de su fila o columna. (Invalida a DataGridViewCell..::.GetInheritedState(Int32)).
Método públicoGetInheritedStyleObtiene el estilo aplicado a la celda. (Se hereda de DataGridViewCell).
Método protegidoGetPreferredSizeCalcula el tamaño preferido, en píxeles, de la celda. (Se hereda de DataGridViewCell).
Método protegidoGetSizeObtiene el tamaño de la celda. (Invalida a DataGridViewCell..::.GetSize(Int32)).
Método públicoGetTypeObtiene el objeto Type de la instancia actual. (Se hereda de Object).
Método protegidoGetValueObtiene el valor de la celda. (Invalida a DataGridViewCell..::.GetValue(Int32)).
Método públicoInitializeEditingControlInicializa el control utilizado para editar la celda. (Se hereda de DataGridViewCell).
Método protegidoKeyDownUnsharesRowIndica si la fila primaria deja de estar compartida cuando el usuario presiona una tecla mientras el foco está en la celda. (Se hereda de DataGridViewCell).
Método públicoKeyEntersEditModeDetermina si el modo de edición se debe iniciar basándose en la clave dada. (Se hereda de DataGridViewCell).
Método protegidoKeyPressUnsharesRowIndica si una fila va a dejar de estar compartida cuando se presiona una tecla mientras el foco está en una celda de la fila. (Se hereda de DataGridViewCell).
Método protegidoKeyUpUnsharesRowIndica si la fila primaria deja de estar compartida cuando el usuario libera una tecla mientras el foco está en la celda. (Se hereda de DataGridViewCell).
Método protegidoLeaveUnsharesRowIndica si una fila va a dejar de estar compartida cuando el foco abandone una celda de la fila. (Se hereda de DataGridViewCell).
Método protegidoMemberwiseCloneCrea una copia superficial del objeto Object actual. (Se hereda de Object).
Método protegidoMouseClickUnsharesRowIndica si una fila va a dejar de estar compartida cuando el usuario haga clic en un botón del mouse mientras el puntero está en una celda de la fila. (Se hereda de DataGridViewCell).
Método protegidoMouseDoubleClickUnsharesRowIndica si una fila va a dejar de estar compartida cuando el usuario haga doble clic en una celda de la fila. (Se hereda de DataGridViewCell).
Método protegidoMouseDownUnsharesRowIndica si no se comparte una fila cuando se mantiene presionado el botón del mouse mientras el puntero está en una celda de la fila. (Invalida a DataGridViewCell..::.MouseDownUnsharesRow(DataGridViewCellMouseEventArgs)).
Método protegidoMouseEnterUnsharesRowIndica si una fila va a dejar de estar compartida cuando el puntero del mouse se sitúe sobre una celda de la fila. (Invalida a DataGridViewCell..::.MouseEnterUnsharesRow(Int32)).
Método protegidoMouseLeaveUnsharesRowIndica si una fila va a dejar de estar compartida cuando el puntero del mouse salga de la fila. (Invalida a DataGridViewCell..::.MouseLeaveUnsharesRow(Int32)).
Método protegidoMouseMoveUnsharesRowIndica si una fila va a dejar de estar compartida cuando el puntero del mouse se sitúe sobre una celda de la fila. (Se hereda de DataGridViewCell).
Método protegidoMouseUpUnsharesRowIndica si no se comparte una fila cuando se libera el botón del mouse mientras el puntero está en una celda de la fila. (Invalida a DataGridViewCell..::.MouseUpUnsharesRow(DataGridViewCellMouseEventArgs)).
Método protegidoOnClickSe le llama al hacer clic en la celda. (Se hereda de DataGridViewCell).
Método protegidoOnContentClickSe le llama al hacer clic en el contenido de la celda. (Se hereda de DataGridViewCell).
Método protegidoOnContentDoubleClickSe le llama al hacer doble clic en el contenido de la celda. (Se hereda de DataGridViewCell).
Método protegidoOnDataGridViewChangedSe le llama cuando cambia la propiedad DataGridView de la celda. (Se hereda de DataGridViewCell).
Método protegidoOnDoubleClickSe le llama al hacer doble clic en la celda. (Se hereda de DataGridViewCell).
Método protegidoOnEnterSe le llama cuando el foco se desplaza a una celda. (Se hereda de DataGridViewCell).
Método protegidoOnKeyDownSe le llama cuando se presiona una tecla de carácter mientras el foco está en una celda. (Se hereda de DataGridViewCell).
Método protegidoOnKeyPressSe le llama cuando se presiona una tecla mientras el foco está en una celda. (Se hereda de DataGridViewCell).
Método protegidoOnKeyUpSe le llama cuando se suelta una tecla de carácter mientras el foco está en una celda. (Se hereda de DataGridViewCell).
Método protegidoOnLeaveSe le llama cuando el foco se desplaza de una celda. (Se hereda de DataGridViewCell).
Método protegidoOnMouseClickSe le llama cuando el usuario hace clic en un botón del mouse mientras el puntero está en una celda. (Se hereda de DataGridViewCell).
Método protegidoOnMouseDoubleClickSe le llama cuando el usuario hace clic en un botón del mouse mientras el puntero está en una celda. (Se hereda de DataGridViewCell).
Método protegidoOnMouseDownSe le llama cuando se mantiene presionado el botón del mouse mientras el puntero está en una celda. (Invalida a DataGridViewCell..::.OnMouseDown(DataGridViewCellMouseEventArgs)).
Método protegidoOnMouseEnterSe lo llama cuando el puntero del mouse entra en la celda. (Invalida a DataGridViewCell..::.OnMouseEnter(Int32)).
Método protegidoOnMouseLeaveSe le llama cuando el puntero del mouse sale de la celda. (Invalida a DataGridViewCell..::.OnMouseLeave(Int32)).
Método protegidoOnMouseMoveSe le llama cuando el puntero del mouse se mueve dentro de una celda. (Se hereda de DataGridViewCell).
Método protegidoOnMouseUpSe lo llama cuando se suelta el botón del mouse mientras el puntero está situado sobre la celda. (Invalida a DataGridViewCell..::.OnMouseUp(DataGridViewCellMouseEventArgs)).
Método protegidoPaintDibuja la celda DataGridViewHeaderCell actual. (Invalida a DataGridViewCell..::.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts)).
Método protegidoPaintBorderDibuja el borde del control DataGridViewCell actual. (Se hereda de DataGridViewCell).
Método protegidoPaintErrorIconDibuja el icono de error del control DataGridViewCell actual. (Se hereda de DataGridViewCell).
Método públicoParseFormattedValueConvierte un valor con formato de presentación en un valor de celda real. (Se hereda de DataGridViewCell).
Método públicoPositionEditingControlEstablece la ubicación y tamaño del control de edición que hospeda una celda del control DataGridView. (Se hereda de DataGridViewCell).
Método públicoPositionEditingPanelEstablece la ubicación y tamaño del panel de edición que hospeda la celda y devuelve los límites normales del control de edición dentro del panel de edición. (Se hereda de DataGridViewCell).
Método protegidoRaiseCellClickProvoca el evento DataGridView..::.CellClick. (Se hereda de DataGridViewElement).
Método protegidoRaiseCellContentClickGenera el evento DataGridView..::.CellContentClick. (Se hereda de DataGridViewElement).
Método protegidoRaiseCellContentDoubleClickGenera el evento DataGridView..::.CellContentDoubleClick. (Se hereda de DataGridViewElement).
Método protegidoRaiseCellValueChangedGenera el evento DataGridView..::.CellValueChanged. (Se hereda de DataGridViewElement).
Método protegidoRaiseDataErrorGenera el evento DataGridView..::.DataError. (Se hereda de DataGridViewElement).
Método protegidoRaiseMouseWheelProvoca el evento Control..::.MouseWheel. (Se hereda de DataGridViewElement).
Método protegidoSetValueEstablece el valor de la celda. (Se hereda de DataGridViewCell).
Método públicoToStringDevuelve una cadena que describe el objeto actual. (Invalida a DataGridViewCell..::.ToString()()()).
Arriba

Esta clase es una clase base para otras clases de celda de encabezado, como DataGridViewRowHeaderCell y DataGridViewColumnHeaderCell. Para crear iconos de encabezado de fila personalizados o glifos de encabezado de columna, herede de la clase DataGridViewHeaderCell y agregue la funcionalidad para pintar su propio icono o glifo.

Notas para los herederos

Cuando derive del control DataGridViewHeaderCell y agregue nuevas propiedades a la clase derivada, asegúrese de reemplazar el método Clone para copiar las nuevas propiedades durante las operaciones de clonación. También debe llamar al método Clone de la clase base para que las propiedades de la clase base se copien a la nueva celda.

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2

.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Todos los miembros static (Shared en Visual Basic) públicos de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker