C# Класс Ext.Net.DD

Наследование: DragDrop
Показать файл Открыть проект Примеры использования класса

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