ESRI.ArcGIS.Mobile
FlashGeometry(Pen,SolidBrush,Int32,Int32,Int32,IGeometry) Method
See Also  Example Send Feedback
ESRI.ArcGIS.Mobile Namespace > Map Class > FlashGeometry Method : FlashGeometry(Pen,SolidBrush,Int32,Int32,Int32,IGeometry) Method

pen
brush
pointSize
delay
count
geometry
Flashes the specified geometry.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub FlashGeometry( _
   ByVal pen As Pen, _
   ByVal brush As SolidBrush, _
   ByVal pointSize As Integer, _
   ByVal delay As Integer, _
   ByVal count As Integer, _
   ByVal geometry As IGeometry _
) 
C# 
public void FlashGeometry( 
   Pen pen,
   SolidBrush brush,
   int pointSize,
   int delay,
   int count,
   IGeometry geometry
)

Parameters

pen
brush
pointSize
delay
count
geometry

Example

Assuming you have a MobileService named "mobileService1" with a feature layer named "OpenSpace" as the third layer on the map, and a map control named "map1", the following example will flash the first record in the datareader of OpenSpace three times.
C#Copy Code
ESRI.ArcGIS.Mobile.ReadOnlyLayerCollection clc = mobileService1.Layers; 
ESRI.ArcGIS.Mobile.MobileServices.MobileServiceLayer cl = clc[2] as ESRI.ArcGIS.Mobile.MobileServices.MobileServiceLayer; 
  
if (cl == null) 
    return; 
  
ESRI.ArcGIS.Mobile.MobileServices.FeatureLayer fl = cl as ESRI.ArcGIS.Mobile.MobileServices.FeatureLayer; 
ESRI.ArcGIS.Mobile.MobileServices.FeatureDataTable fldt = fl.GetDataTable(); 
ESRI.ArcGIS.Mobile.QueryFilter qf = new ESRI.ArcGIS.Mobile.QueryFilter(); 
  
using (ESRI.ArcGIS.Mobile.MobileServices.FeatureDataReader fdr = fl.GetDataReader(qf)) 

    SolidBrush sb = new SolidBrush(Color.FromArgb(96, Color.Red)); 
    if (fdr.Read()) 
    { 
      ESRI.ArcGIS.Mobile.Geometries.Geometry g = fdr.GetGeometry() as ESRI.ArcGIS.Mobile.Geometries.Geometry; 
      if (g == null) 
        return; 
      map1.FlashGeometry(Pens.Red, sb, 10, 500, 3, g); 
    } 

    

Remarks

FlashGeometry is provided as a way to provide feedback to end-user. An example of FlashGeometry is to flash the selected feature when user clicks a record in attribute table.

Please note that, if you call FlashGeometry when anther FlashGeometry is in progress, the previous one will be cancelled out. If you have multiple geometries that need to be flashed, pass the collection of geometries as a parameter to the overloaded FlashGeometry method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also