Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Howto save to and restore from file the featurelayer's IFeatureSelection properties

$
0
0
Hello,

Like symbology, I would like to save to and restore from file the featurelayer's IFeatureSelection properties. This properties are set on the FeatureLayerSelectionPropertyPage.
I can do it (save to file) with the featurelayer's symbology with

IGeoFeatureLayer geoFeatureLayer = (IGeoFeatureLayer)featureLayer;

IMemoryBlobStream memoryBlobStream = new MemoryBlobStreamClass();
IObjectStream objectStream = new ObjectStreamClass();
objectStream.Stream = (IMemoryBlobStream)memoryBlobStream;
IPropertySet propertySet = new PropertySet();
IPersistStream persistStream = (IPersistStream)propertySet;

propertySet.SetProperty("
Symbology", geoFeatureLayer.Renderer);
persistStream.Save(objectStream, 0);
memoryBlobStream.SaveToFile(filePath);


but for the featureselection I can't find anything.
Does anybody know how to do it?

Many thanks,

Pieter

Viewing all articles
Browse latest Browse all 1374

Trending Articles