Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
ShapeFileWriter..::.AddRecord Method (array<Double>[]()[], Int32, array<String>[]()[])
ShapeFileWriter Class See Also Send Feedback

abstract method used to add a new record to the shapefile

Namespace: EGIS.ShapeFileLib
Assembly: EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

# Syntax

Visual Basic (Declaration)
    Public MustOverride Sub AddRecord ( _
    	points As Double(), _
    	pointCount As Integer, _
    	fieldData As String() _
    )

C#
    public abstract void AddRecord(
    	double[] points,
    	int pointCount,
    	string[] fieldData
    )

Visual C++
    public:
    virtual void AddRecord(
    	array<double>^ points,
    	int pointCount,
    	array<String^>^ fieldData
    ) abstract

#### Parameters

points
  Type: array< System..::.Double >[]()[]
  an array containing the individual points of the shape record, where the first element of the array is the x value of point 0, second element is y value of point 0 etc.

pointCount
  Type: System..::.Int32
  The number of points in the pts array (which may be less than points.length*2). Note that if all elements of points are used pointCount will equal pts.length/2

fieldData
  Type: array< System..::.String >[]()[]
  fieldData string values of the data associated with the shape record (which is stored in the dbf file)

# Remarks

Derived subclasses override this method to write the appropriate data depending on the ShapeType being used.

# See Also

ShapeFileWriter Class
AddRecord Overload
EGIS.ShapeFileLib Namespace