API Reference > imodeljs-common > DisplayStyles > SpatialClassifiers > replace replace Method Replace an existing classifier with a different one. replace(toReplace: SpatialClassifier, replacement: SpatialClassifier): boolean note If toReplace was the SpatialClassifiers.active classifier, replacement will become active. Parameter Type Description toReplace SpatialClassifier The classifier to be replaced. replacement SpatialClassifier The classifier to replace toReplace. Returns - boolean true if a classifier equivalent to toReplace existed in the set and was replaced by replacement. Defined in core/common/src/SpatialClassification.ts Line 346 Last Updated: 12 June, 2024