This document is archived and information here might be outdated.  Recommended version.


ISymbologyControl.RemoveFile Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

ISymbologyControl.RemoveFile Method

Removes a file from the SymbologyControl.

[Visual Basic .NET]
Public Sub RemoveFile ( _
    ByVal fileName As String _
)
[C#]
public void RemoveFile (
    string fileName
);
[C++]
HRESULT RemoveFile(
  BSTR fileName
);
[C++]

Parameters fileName [in] fileName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine.

Description

Removes the contents of the specified server style file (*.ServerStyle) or style file (*.Style) from the SymbologyControl. Corresponding items are removed from each SymbologyStyleClass.

Errors Returned

1008: The file is not recognized as a Server Style file.
1054 800a041e: The specified filename is invalid.
1075 800a0433: ArcGIS for Desktop is not installed on this machine so Style files cannot be read.

See Also

ISymbologyControl Interface