C# Класс trello.Interactions.PointIndex

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

Открытые методы

Метод Описание
Add ( Value item ) : void

Adds the specified value into the point index. The location in the index is determined by its y-coordinate relative to other items already in the list. The resulting index will be sorted from lowest y-coordinate to highest.

Get ( int index ) : Value

Returns the index value at the given index location.

GetPotentialItem ( Point targetPoint ) : Value

Returns the item if the target point has a hit test match in the index.

IndexOf ( Point point ) : int

Returns the index location for a given point in the index.

IndexOf ( Value point ) : int

Returns the index location of a given value in the index.

Remove ( string id ) : void
ShuffleItems ( int oldIndex, int newIndex ) : void

Swaps the indexed items beginning with the old index until the new index.

Приватные методы

Метод Описание
Adjust ( int startIndex, double offset ) : void
FindSuitableIndex ( Rect position ) : int
SwapIndex ( int indexFrom, int indexTo ) : void

Описание методов

Add() публичный Метод

Adds the specified value into the point index. The location in the index is determined by its y-coordinate relative to other items already in the list. The resulting index will be sorted from lowest y-coordinate to highest.
public Add ( Value item ) : void
item Value
Результат void

Get() публичный Метод

Returns the index value at the given index location.
public Get ( int index ) : Value
index int
Результат Value

GetPotentialItem() публичный Метод

Returns the item if the target point has a hit test match in the index.
public GetPotentialItem ( Point targetPoint ) : Value
targetPoint System.Windows.Point Point to do a hit test against
Результат Value

IndexOf() публичный Метод

Returns the index location for a given point in the index.
public IndexOf ( Point point ) : int
point System.Windows.Point The point to do a hit test against.
Результат int

IndexOf() публичный Метод

Returns the index location of a given value in the index.
public IndexOf ( Value point ) : int
point Value
Результат int

Remove() публичный Метод

public Remove ( string id ) : void
id string
Результат void

ShuffleItems() публичный Метод

Swaps the indexed items beginning with the old index until the new index.
public ShuffleItems ( int oldIndex, int newIndex ) : void
oldIndex int
newIndex int
Результат void