Jump to content

How to remove FilteringScheme using C# API

Georgi Koemdzhiev

Recommended Posts

Hello, I am trying to figure out how to remove a FilteringScheme from the API. The code below adds one but I am having trouble how to delete one after I add it. Does anyone have any suggestions

// Add a new data filtering selection.

DataFilteringSelection dataFilteringSelection = document.Data.Filterings.Add("Filtering Scheme1");

// A filtering scheme has now been implicitly added for the new data filtering selection.

FilteringScheme myFilteringScheme = document.FilteringSchemes[dataFilteringSelection];

// Let the active page use the new filtering scheme.

document.ActivePageReference.FilterPanel.FilteringSchemeReference = myFilteringScheme;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...