Please advise how to use DAML.Tool.esri_layouts_selectByRectangleTool

89
0
09-23-2020 08:06 AM
TomLiu
by
New Contributor

Hello,

Currently I am trying to use DAML.Tool.esri_layouts_selectByRectangleTool to select an element in my layout. could you please advise what parameter I should pass to the Execute command so that I can successfully select a layout element. I have tried to pass a point of type System.Windows.Point but it's not working. 

var commandEsriLayoutsSelectByRectangleTool = FrameworkApplication.GetPlugInWrapper(DAML.Tool.esri_layouts_selectByRectangleTool) as ICommand;

var point = new Point(x, y);
if (commandEsriLayoutsSelectByRectangleTool != null && commandEsriLayoutsSelectByRectangleTool.CanExecute(point))
{
commandEsriLayoutsSelectByRectangleTool.Execute(point);
}

Thanks very much for your help in advance.

Best Regards,

Tom Liu

0 Kudos
0 Replies