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
DataGridViewCell..::.PositionEditingControl Method

Sets the location and size of the editing control hosted by a cell in the DataGridView control.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
Visual Basic
Public Overridable Sub PositionEditingControl ( _
    setLocation As Boolean, _
    setSize As Boolean, _
    cellBounds As Rectangle, _
    cellClip As Rectangle, _
    cellStyle As DataGridViewCellStyle, _
    singleVerticalBorderAdded As Boolean, _
    singleHorizontalBorderAdded As Boolean, _
    isFirstDisplayedColumn As Boolean, _
    isFirstDisplayedRow As Boolean _
)
C#
public virtual void PositionEditingControl(
    bool setLocation,
    bool setSize,
    Rectangle cellBounds,
    Rectangle cellClip,
    DataGridViewCellStyle cellStyle,
    bool singleVerticalBorderAdded,
    bool singleHorizontalBorderAdded,
    bool isFirstDisplayedColumn,
    bool isFirstDisplayedRow
)
Visual C++
public:
virtual void PositionEditingControl(
    bool setLocation, 
    bool setSize, 
    Rectangle cellBounds, 
    Rectangle cellClip, 
    DataGridViewCellStyle^ cellStyle, 
    bool singleVerticalBorderAdded, 
    bool singleHorizontalBorderAdded, 
    bool isFirstDisplayedColumn, 
    bool isFirstDisplayedRow
)
F#
abstract PositionEditingControl : 
        setLocation:bool * 
        setSize:bool * 
        cellBounds:Rectangle * 
        cellClip:Rectangle * 
        cellStyle:DataGridViewCellStyle * 
        singleVerticalBorderAdded:bool * 
        singleHorizontalBorderAdded:bool * 
        isFirstDisplayedColumn:bool * 
        isFirstDisplayedRow:bool -> unit 
override PositionEditingControl : 
        setLocation:bool * 
        setSize:bool * 
        cellBounds:Rectangle * 
        cellClip:Rectangle * 
        cellStyle:DataGridViewCellStyle * 
        singleVerticalBorderAdded:bool * 
        singleHorizontalBorderAdded:bool * 
        isFirstDisplayedColumn:bool * 
        isFirstDisplayedRow:bool -> unit 

Parameters

setLocation
Type: System..::.Boolean
true to have the control placed as specified by the other arguments; false to allow the control to place itself.
setSize
Type: System..::.Boolean
true to specify the size; false to allow the control to size itself.
cellBounds
Type: System.Drawing..::.Rectangle
A Rectangle that defines the cell bounds.
cellClip
Type: System.Drawing..::.Rectangle
The area that will be used to paint the editing control.
cellStyle
Type: System.Windows.Forms..::.DataGridViewCellStyle
A DataGridViewCellStyle that represents the style of the cell being edited.
singleVerticalBorderAdded
Type: System..::.Boolean
true to add a vertical border to the cell; otherwise, false.
singleHorizontalBorderAdded
Type: System..::.Boolean
true to add a horizontal border to the cell; otherwise, false.
isFirstDisplayedColumn
Type: System..::.Boolean
true if the hosting cell is in the first visible column; otherwise, false.
isFirstDisplayedRow
Type: System..::.Boolean
true if the hosting cell is in the first visible row; otherwise, false.
ExceptionCondition
InvalidOperationException

The cell is not contained within a DataGridView control.

Some classes derived from the DataGridViewCell class, such as DataGridViewComboBoxCell, host a control in the selected cell. The PositionEditingControl method positions the editing control inside of the host cell. Because the editing control may take up more space than a single cell, it may need to be positioned differently when editing a cell in the first visible column or first visible row so it does not paint outside the DataGridView.

.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.
Biblioteca de clases de .NET Framework
DataGridViewCell..::.PositionEditingControl (Método)

Establece la ubicación y tamaño del control de edición que hospeda una celda del control DataGridView.

Espacio de nombres:  System.Windows.Forms
Ensamblado:  System.Windows.Forms (en System.Windows.Forms.dll)
Visual Basic
Public Overridable Sub PositionEditingControl ( _
    setLocation As Boolean, _
    setSize As Boolean, _
    cellBounds As Rectangle, _
    cellClip As Rectangle, _
    cellStyle As DataGridViewCellStyle, _
    singleVerticalBorderAdded As Boolean, _
    singleHorizontalBorderAdded As Boolean, _
    isFirstDisplayedColumn As Boolean, _
    isFirstDisplayedRow As Boolean _
)
C#
public virtual void PositionEditingControl(
    bool setLocation,
    bool setSize,
    Rectangle cellBounds,
    Rectangle cellClip,
    DataGridViewCellStyle cellStyle,
    bool singleVerticalBorderAdded,
    bool singleHorizontalBorderAdded,
    bool isFirstDisplayedColumn,
    bool isFirstDisplayedRow
)
Visual C++
public:
virtual void PositionEditingControl(
    bool setLocation, 
    bool setSize, 
    Rectangle cellBounds, 
    Rectangle cellClip, 
    DataGridViewCellStyle^ cellStyle, 
    bool singleVerticalBorderAdded, 
    bool singleHorizontalBorderAdded, 
    bool isFirstDisplayedColumn, 
    bool isFirstDisplayedRow
)
F#
abstract PositionEditingControl : 
        setLocation:bool * 
        setSize:bool * 
        cellBounds:Rectangle * 
        cellClip:Rectangle * 
        cellStyle:DataGridViewCellStyle * 
        singleVerticalBorderAdded:bool * 
        singleHorizontalBorderAdded:bool * 
        isFirstDisplayedColumn:bool * 
        isFirstDisplayedRow:bool -> unit 
override PositionEditingControl : 
        setLocation:bool * 
        setSize:bool * 
        cellBounds:Rectangle * 
        cellClip:Rectangle * 
        cellStyle:DataGridViewCellStyle * 
        singleVerticalBorderAdded:bool * 
        singleHorizontalBorderAdded:bool * 
        isFirstDisplayedColumn:bool * 
        isFirstDisplayedRow:bool -> unit 

Parámetros

setLocation
Tipo: System..::.Boolean
true para que el control se sitúe como especifican los demás argumentos; false para permitir que el control se coloque por sí mismo.
setSize
Tipo: System..::.Boolean
true para especificar el tamaño; false para permitir que el propio tamaño ajuste su control.
cellBounds
Tipo: System.Drawing..::.Rectangle
Rectangle que define los límites de la celda.
cellClip
Tipo: System.Drawing..::.Rectangle
Área que se va a utilizar para dibujar el control de edición.
cellStyle
Tipo: System.Windows.Forms..::.DataGridViewCellStyle
DataGridViewCellStyle que representa el estilo de la celda que se está editando.
singleVerticalBorderAdded
Tipo: System..::.Boolean
true para agregar un borde vertical a la celda; de lo contrario, false.
singleHorizontalBorderAdded
Tipo: System..::.Boolean
true para agregar un borde horizontal a la celda; de lo contrario, false.
isFirstDisplayedColumn
Tipo: System..::.Boolean
true si la celda de hospedaje está en la primera columna visible; de lo contrario, false.
isFirstDisplayedRow
Tipo: System..::.Boolean
true si la celda de hospedaje está en la primera fila visible; de lo contrario, false.
ExcepciónCondición
InvalidOperationException

La celda no está incluida dentro de un control DataGridView.

Algunas clases derivadas de la clase DataGridViewCell, como DataGridViewComboBoxCell, hospedan un control en la celda seleccionada. El método PositionEditingControl coloca el control de edición dentro de la celda de hospedaje. Como el control de edición puede ocupar más espacio que una sola celda, puede que sea necesario colocarlo de otra manera al editar una celda en la primera columna visible o en la primera fila visible, de modo que no se dibuje fuera del control DataGridView.

.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.
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