ESRI.ArcGIS.ADF.IMS
DisplayBuffer Constructor(Double,BufferUnits,Boolean)
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > DisplayBuffer Class > DisplayBuffer Constructor : DisplayBuffer Constructor(Double,BufferUnits,Boolean)




distance
Distance of the buffer.
units
Units that the distance is in.
project
Value that enables projecting of the Buffer.
Constructs a DisplayBuffer object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal distance As Double, _
   ByVal units As BufferUnits, _
   ByVal project As Boolean _
)
Visual Basic (Usage)Copy Code
Dim distance As Double
Dim units As BufferUnits
Dim project As Boolean
 
Dim instance As DisplayBuffer(distance, units, project)
C# 
public DisplayBuffer( 
   double distance,
   BufferUnits units,
   bool project
)

Parameters

distance
Distance of the buffer.
units
Units that the distance is in.
project
Value that enables projecting of the Buffer.

Remarks

A buffer distance of 0 can be used on polygon features. If a buffer distance of 0 is used with line or point features, no data is returned.

Generated buffers are projected if a SpatialReference is included in the map configuration file or in the request. If Project is set to false, the buffer is not projected.

Known limit: When projecting buffers and a target layer is used, a SpatialReference must be explicitly defined for the target layer, even if a SpatialReference is included in the map configuration file. Otherwise, the buffer will not project as expected.

See Also

© 2010 All Rights Reserved.