CopyStyleFrom
CopyStyleFrom copies the styles from a layer in order to then paste the styles to a layer with features of the same geometry type using the CopyStyleTo method. All feature and annotation properties, i.e., properties included on the Feature (Polygon, Polyline or Point) and Annotation tabs are copied.
JavaScript |
|
CopyStyleFrom(LayerID) |
C# |
|
void CopyStyleFrom (string LayerID) |
C++ |
|
HRESULT CopyStyleFrom ([in] BSTR LayerID); |
Parameters
LayerID
ID of the layer from which to copy the styles.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.