Parameters
- URI
- String
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
LayoutProjectItem layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals("Layout Name")); await QueuedTask.Run(() => { Layout layout = layoutItem.GetLayout(); PictureElement picElm = layout.FindElement("Rectangle") as PictureElement; picElm.SetSourcePath(@"C:\Some\New\Path\And\file.ext"); });
Target Platforms: Windows 10, Windows 8.1, Windows 7