This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Get ForceElementRenderer Snippet (ArcObjects .NET 10.4 SDK) |
Uses MoleCoreHelper to get a single instance of the ForceElementRenderer.
///<summary>Uses MoleCoreHelper to get a single instance of the ForceElementRenderer.</summary> /// ///<returns>An ICacheRenderer interface fro force element operations.</returns> /// ///<remarks> ///Uses MoleCoreHelper to get a single instance of the ForceElementRenderer ///Regardless of the number of times called, the same renderer will always be ///returned. Also note, changing the properties of this renderer will also ///affect all others using it. ///</remarks> public ESRI.ArcGIS.DefenseSolutions.ICacheRenderer GetForceElementRenderer() { // use MoleCoreHelper to get single instance of renderer ESRI.ArcGIS.DefenseSolutions.IMoleCoreHelper moleCoreHelper=new ESRI.ArcGIS.DefenseSolutions.MoleCoreHelperClass(); ESRI.ArcGIS.DefenseSolutions.ICacheRenderer cacheRenderer=moleCoreHelper.ForceElementRenderer; return cacheRenderer; }
'''<summary>Uses MoleCoreHelper to get a single instance of the ForceElementRenderer.</summary> ''' '''<returns>An ICacheRenderer interface fro force element operations.</returns> ''' '''<remarks> '''Uses MoleCoreHelper to get a single instance of the ForceElementRenderer '''Regardless of the number of times called, the same renderer will always be '''returned. Also note, changing the properties of this renderer will also '''affect all others using it. '''</remarks> Public Function GetForceElementRenderer() As ESRI.ArcGIS.DefenseSolutions.ICacheRenderer ' use MoleCoreHelper to get single instance of renderer Dim moleCoreHelper As ESRI.ArcGIS.DefenseSolutions.IMoleCoreHelper=New ESRI.ArcGIS.DefenseSolutions.MoleCoreHelperClass Dim cacheRenderer As ESRI.ArcGIS.DefenseSolutions.ICacheRenderer=moleCoreHelper.ForceElementRenderer Return cacheRenderer End Function