DataGridViewCell.PositionEditingControl 메서드

정의

DataGridView 컨트롤의 셀에서 호스팅하는 편집 컨트롤의 위치와 크기를 설정합니다.

public:
 virtual void PositionEditingControl(bool setLocation, bool setSize, System::Drawing::Rectangle cellBounds, System::Drawing::Rectangle cellClip, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
public virtual void PositionEditingControl (bool setLocation, bool setSize, System.Drawing.Rectangle cellBounds, System.Drawing.Rectangle cellClip, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool singleVerticalBorderAdded, bool singleHorizontalBorderAdded, bool isFirstDisplayedColumn, bool isFirstDisplayedRow);
abstract member PositionEditingControl : bool * bool * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * bool * bool * bool * bool -> unit
override this.PositionEditingControl : bool * bool * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Windows.Forms.DataGridViewCellStyle * bool * bool * bool * bool -> unit
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)

매개 변수

setLocation
Boolean

다른 인수에 지정된 대로 컨트롤을 배치하려면true 이고, 컨트롤을 자동으로 배치하려면 false 입니다.

setSize
Boolean

크기를 지정하려면true 이고, 컨트롤의 크기를 자동으로 조정하려면 false 입니다.

cellBounds
Rectangle

셀 범위를 정의하는 Rectangle 입니다.

cellClip
Rectangle

편집 컨트롤을 그리는 데 사용할 영역입니다.

cellStyle
DataGridViewCellStyle

편집되는 셀의 스타일을 나타내는 DataGridViewCellStyle 입니다.

singleVerticalBorderAdded
Boolean

셀에 세로 테두리를 추가하려면 true이고, 그러지 않으면 false입니다.

singleHorizontalBorderAdded
Boolean

셀에 가로 테두리를 추가하려면 true이고, 그러지 않으면 false입니다.

isFirstDisplayedColumn
Boolean

호스팅 셀이 처음 표시되는 열에 있으면 true이고, 없으면 false입니다.

isFirstDisplayedRow
Boolean

호스팅 셀이 처음 표시되는 행에 있으면 true이고, 없으면 false입니다.

예외

셀이 DataGridView 컨트롤에 포함되어 있지 않은 경우

설명

클래스에서 DataGridViewCell 파생된 일부 클래스(예: DataGridViewComboBoxCell선택한 셀에서 컨트롤을 호스트). 메서드는 PositionEditingControl 호스트 셀 내부에 편집 컨트롤을 배치합니다. 편집 컨트롤은 단일 셀보다 더 많은 공간을 차지할 수 있으므로 처음 표시되는 열 또는 첫 번째 표시된 행에서 셀을 편집할 때 다른 위치에 배치해야 외부로 칠 DataGridView하지 않을 수 있습니다.

적용 대상

추가 정보