public Move ( ObjectHandle objectHandle, |
||
objectHandle | ObjectHandle | |
targetIndex | ||
리턴 | void |
public void Move(T item, int targetIndex) { if (targetIndex < 0) { throw new ArgumentOutOfRangeException(); } _listHandle.Move(item.ObjectHandle, (IntPtr)targetIndex); }
public void Move(int sourceIndex, int targetIndex) { if (targetIndex < 0) { throw new ArgumentOutOfRangeException(nameof(targetIndex)); } if (sourceIndex < 0) { throw new ArgumentOutOfRangeException(nameof(sourceIndex)); } _listHandle.Move((IntPtr)sourceIndex, (IntPtr)targetIndex); }