ClearCanvas.Desktop.View.WinForms.BindingTreeView.SetInsertMark C# (CSharp) Method

SetInsertMark() private method

Sets or unsets an insertion mark before or after the specified node. DragDropPosition.Default clears the insertion mark.
private SetInsertMark ( TreeNode node, DragDropPosition position ) : void
node System.Windows.Forms.TreeNode
position DragDropPosition
return void
		private void SetInsertMark(TreeNode node, DragDropPosition position)
		{
			IntPtr drawAfter = new IntPtr(position == DragDropPosition.After ? 1 : 0);
			IntPtr nodeHandle = IntPtr.Zero;
			if (node != null && position != DragDropPosition.Default)
				nodeHandle = node.Handle;

			SendMessage(_treeCtrl.Handle, (int) WindowsMessages.TVM_SETINSERTMARK, drawAfter, nodeHandle);
		}