Select to view content in your preferred language

Getting source from Non-Public members

810
2
Jump to solution
11-09-2022 03:12 AM
DavidMrázek
Frequent Contributor

Hi,
I am trying to get the value using inspector but i am deadlocked and I don't know how to get the value which is shown in the image.

non.png

Sample code:

 

var selection = MapView.Active.SelectFeatures(geo);
                        List<long> selectList = selection[featureToVerPom];
                        foreach (long objektd in selectList)
                        {
                            var inspector = new Inspector();
                            inspector.Load(featureToVerPom, objektd);
                            var strana = inspector.GetEnumerator();
                        }

 

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

Are you going to read attributes of loaded feature?

If yes, then you can do it like this:

var value = inspector[fieldName];

 

View solution in original post

2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Are you going to read attributes of loaded feature?

If yes, then you can do it like this:

var value = inspector[fieldName];

 

DavidMrázek
Frequent Contributor

Hi,
I've done this several times in other projects and now I'm coming up with useless things.
Thank you so much.

0 Kudos