C# 클래스 Ext.Net.DD

상속: DragDrop
파일 보기 프로젝트 열기: pgodwin/Ext.net 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AlignElWithMouse ( string el, int iPageX, int iPageY ) : void

Sets the element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.

AutoOffset ( int iPageX, int iPageY ) : void

Sets the pointer offset to the distance between the linked element's top left corner and the location the element was clicked

CachePosition ( ) : void

Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.

CachePosition ( int iPageX, int iPageY ) : void

Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.

SetDelta ( int iDeltaX, int iDeltaY ) : void

Sets the pointer offset. You can call this directly to force the offset to be in a particular location (e.g., pass in 0,0 to set it to the center of the object)

SetDragElPos ( int iPageX, int iPageY ) : void

Sets the drag element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.

메소드 상세

AlignElWithMouse() 공개 메소드

Sets the element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.
public AlignElWithMouse ( string el, int iPageX, int iPageY ) : void
el string the element to move
iPageX int the X coordinate of the mousedown or drag event
iPageY int the Y coordinate of the mousedown or drag event
리턴 void

AutoOffset() 공개 메소드

Sets the pointer offset to the distance between the linked element's top left corner and the location the element was clicked
public AutoOffset ( int iPageX, int iPageY ) : void
iPageX int the X coordinate of the click
iPageY int the Y coordinate of the click
리턴 void

CachePosition() 공개 메소드

Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.
public CachePosition ( ) : void
리턴 void

CachePosition() 공개 메소드

Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.
public CachePosition ( int iPageX, int iPageY ) : void
iPageX int current x position (optional, this just makes it so we don't have to look it up again)
iPageY int current y position (optional, this just makes it so we don't have to look it up again)
리턴 void

SetDelta() 공개 메소드

Sets the pointer offset. You can call this directly to force the offset to be in a particular location (e.g., pass in 0,0 to set it to the center of the object)
public SetDelta ( int iDeltaX, int iDeltaY ) : void
iDeltaX int the distance from the left
iDeltaY int the distance from the top
리턴 void

SetDragElPos() 공개 메소드

Sets the drag element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.
public SetDragElPos ( int iPageX, int iPageY ) : void
iPageX int the X coordinate of the mousedown or drag event
iPageY int the Y coordinate of the mousedown or drag event
리턴 void