This code will only work in earlier versions (I don't see what version you are using). In 4.8/4.9 the proper way to go is to use Shapefile.Categories.Generate. ColorScheme and ColorBreak classes are [marked as deprecated] in the docs (http://www.mapwindow.org/documentation/mapwingis4.9/class_shapefile_color_scheme.html). In fact in the current 4.9.3 release they were totally removed from the API.
↧