CopyStyleTo

CopyStyleTo pastes the styles that were copied from a layer with features of the same geometry type using the CopyStyleFrom method. All feature and annotation properties, i.e., properties included on the Feature (Polygon, Polyline or Point) and Annotation tabs are pasted.

 

JavaScript

 

CopyStyleTo(LayerID)

 

C#

 

void CopyStyleTo (string LayerID)

 

C++

 

HRESULT CopyStyleTo ([in] BSTR LayerID);

Parameters

LayerID

ID of the layer to which to copy the styles.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.