Select to view content in your preferred language

How to programmatically select an added note?

750
1
05-11-2010 12:50 PM
RandySine
New Contributor
ArcGis Explorer 900 - ArcGis Desktop 9.3.1 - Visual Studio 2008 (C#)

How do you programmatically select an added note?

I am adding a note via:
            _MapDisplay.Graphics.Remove(_TemporaryPointGraphic);
            _AddedPointCount += 1;
            _PointNote = new Note("User Added Point " + Convert.ToString(_AddedPointCount), _TemporaryPointGraphic);
            _PointNote.Popup.Content = txtInfo.Text;
            _MapDisplay.Map.ChildItems.Add(_PointNote);

The note gets added fine, but is not selected.  The behavior I am looking for can be found by using the Measure tool, clicking the Information button (3rd button), clicking a point on the map, and then clicking the Add to Map button.

TIA
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor
You could try looking at the SelectedItemsCollection Class - I believe that can be used to retrieve and set the selected items in the Contents window.

Regards

Mike
0 Kudos