This document is archived and information here might be outdated. Recommended version. |
Create a simple marker symbol by specifying and input color and marker style.
///<summary>Create a simple marker symbol by specifying and input color and marker style.</summary> /// ///<param name="rgbColor">An IRGBColor interface.</param> ///<param name="inputStyle">An esriSimpleMarkerStyle enumeration. Example: esriSMSCircle.</param> /// ///<returns>An ISimpleMarkerSymbol interface.</returns> /// ///<remarks></remarks> public ESRI.ArcGIS.Display.ISimpleMarkerSymbol CreateSimpleMarkerSymbol(ESRI.ArcGIS.Display.IRgbColor rgbColor, ESRI.ArcGIS.Display.esriSimpleMarkerStyle inputStyle) { if(rgbColor == null || inputStyle == null) { return null; } ESRI.ArcGIS.Display.ISimpleMarkerSymbol simpleMarkerSymbol=new ESRI.ArcGIS.Display.SimpleMarkerSymbolClass(); simpleMarkerSymbol.Color=rgbColor; simpleMarkerSymbol.Style=inputStyle; return simpleMarkerSymbol; }
'''<summary>Create a simple marker symbol by specifying and input color and marker style.</summary> ''' '''<param name="rgbColor">An IRGBColor interface.</param> '''<param name="inputStyle">An esriSimpleMarkerStyle enumeration. Example: esriSMSCircle.</param> ''' '''<returns>An ISimpleMarkerSymbol interface.</returns> ''' '''<remarks></remarks> Public Function CreateSimpleMarkerSymbol(ByVal rgbColor As ESRI.ArcGIS.Display.IRgbColor, ByVal inputStyle As ESRI.ArcGIS.Display.esriSimpleMarkerStyle) As ESRI.ArcGIS.Display.ISimpleMarkerSymbol If rgbColor Is Nothing OrElse inputStyle=Nothing Then Return Nothing End If Dim simpleMarkerSymbol As ESRI.ArcGIS.Display.ISimpleMarkerSymbol=New ESRI.ArcGIS.Display.SimpleMarkerSymbolClass simpleMarkerSymbol.Color=rgbColor simpleMarkerSymbol.Style=inputStyle Return simpleMarkerSymbol End Function