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