TreeNode.AOTDrop Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AOTDrop(TreeNode) |
Creates a copy of a specified tree node as a child to the TreeNode object. |
AOTDrop(TreeNode, TreeNode) |
AOTDrop(TreeNode)
Creates a copy of a specified tree node as a child to the TreeNode object.
public:
virtual bool AOTDrop(Dynamics::AX::Application::TreeNode ^ node1);
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public virtual bool AOTDrop (Dynamics.AX.Application.TreeNode node1);
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
abstract member AOTDrop : Dynamics.AX.Application.TreeNode -> bool
override this.AOTDrop : Dynamics.AX.Application.TreeNode -> bool
Public Overridable Function AOTDrop (node1 As TreeNode) As Boolean
Parameters
- node1
- TreeNode
Returns
true if the drop operation was successful; otherwise, false.
- Attributes
-
Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute
Remarks
The following example creates the tabPage:CopyOfContainers tree node as the last node underTab:Tab in the tutorial_Form_Controls form.
#AOT
static void myJobAOTDrop(Args _args)
{
treeNode treeNodeTab;
treeNode treeNodeTabPageContainers;
treeNodeTab = TreeNode::findNode(#FormsPath + '\\' +
formStr(tutorial_form_controls)+ '\\Designs\\Design\\[Tab:Tab]');
treeNodeTabPageContainers = TreeNode::findNode(#FormsPath + '\\' +
formStr(tutorial_form_controls)+
'\\Designs\\Design\\[Tab:Tab]\\[TabPage:Containers]');
if (treeNodeTab && treeNodeTabPageContainers)
{
// Drop the TabPage:Containers node on the Tab:Tab node.
print treeNodeTab.AOTDrop(treeNodeTabPageContainers);
}
else
{
print "Could not find treeNodeTab or treeNodeTabPageContainers";
}
pause;
}
Applies to
AOTDrop(TreeNode, TreeNode)
public:
virtual bool AOTDrop(Dynamics::AX::Application::TreeNode ^ _sourcenode, Dynamics::AX::Application::TreeNode ^ _after);
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public virtual bool AOTDrop (Dynamics.AX.Application.TreeNode _sourcenode, Dynamics.AX.Application.TreeNode _after);
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
abstract member AOTDrop : Dynamics.AX.Application.TreeNode * Dynamics.AX.Application.TreeNode -> bool
override this.AOTDrop : Dynamics.AX.Application.TreeNode * Dynamics.AX.Application.TreeNode -> bool
Public Overridable Function AOTDrop (_sourcenode As TreeNode, _after As TreeNode) As Boolean
Parameters
- _sourcenode
- TreeNode
The child node of the tree node that the source should be inserted after; optional.
- _after
- TreeNode
The child node of the tree node that the source should be inserted after; optional.
Returns
- Attributes
-
Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute