CreateLayer(name)

Returns the Layer object that represents a work layer of the theme. The name argument specifies a string that is the layer name. The object is not added to the Theme::Layers collection. To add the layer to the theme, it is necessary to create feature types by the Layer::CreateFeatureType method, to add them to the Layer::FeatureTypes collection and to add the Layer object to the Theme::Layers collection by the method Append. To access layer features, the layer must belong to the Theme::Layers collection.