This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISymbologyControl Interface > ISymbologyControl.RemoveFile Method (ArcObjects .NET 10.5 SDK) |
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
Removes the contents of the specified server style file (*.ServerStyle) or style file (*.Style) from the SymbologyControl. Corresponding items are removed from each SymbologyStyleClass.
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.