IMultiLineString

A collection of linestrings. In addition to the other properties inherited from IGeometry, multilinestrings have length.

 

 

Properties

 

Count

Gets the number of linestrings in the collection. (Inherited from IGeometryCollection

Dimension

Gets the dimension of the multilinestring. (Inherited from IGeometry)

Envelope

Gets the multilinestring’s bounding box. The envelope of a multilinestring is the non-intersected endpoints of the linestring elements. Returns NULL if all the endpoints of all the linestrings are intersected. (Inherited from IGeometry)

Geometry

Gets an IGeometry, representing a specific multiline in the collection.

GeometryType

Gets the geometry type ID. (Inherited from IGeometry)

GeometryTypeStr

Gets a string representation of the geometry type. (Inherited from IGeometry)

Item

Gets the data stored in the specified zero-based index. (Inherited from IGeometryCollection

Length

Gets the length of the multiline string.

NumGeometries

Gets the number of linestrings in this multilinestring collection. (Inherited from IGeometryCollection

SpatialOperator

An ISpatialOperator representing the multilinestring’s interaction with another geometry object. (Inherited from IGeometry)

SpatialRelation

An ISpatialRelation that tests the multilinestring’s spatial relationship with other geometries. (Inherited from IGeometry)

Wks

An IWks representing methods for transferring coordinate system information (WKT and WKB). (Inherited from IGeometry)

 

Methods

 

AddGeometry

Adds a linestring to the collection. (Inherited from IGeometryCollection)

Clone

Returns an exact copy of the selected multilinestring (Inherited from IGeometry)

DeleteGeometry

Deletes the selected linestring from the collection. (Inherited from IGeometryCollection)

EndEdit

Terminates the edit item mode. (Inherited from IGeometry)

IsClosed

Gets a Boolean determining if the multilinestring is closed. A multilinestring is closed if all its linestring elements are closed.

IsEmpty

Returns whether or not the collection is empty. (Inherited from IGeometry)

IsSimple

Returns whether or not the geometry collection is simple. Multilinestrings are simple if they only intersect at the endpoints of the linestring elements, and non-simple if they intersect in the middle of a linestring. (Inherited from IGeometry)

SetEmpty

Removes all linestrings from this collection. (Inherited from IGeometry)

StartEdit

Starts the edit item mode. (Inherited from IGeometry)

 

Geometry

Gets an IGeometry, representing a specific multiline in the collection. This property is exposed in C# and JavaScript in the following ways:

§   In C#, this property is exposed as Geometry, e.g.,

IMultiLineString myMultiLineString;

IGeometry thisGeometry = myMultiLineString.Geometry[0];

Note:    In older versions of C#, this property is exposed as get_Geometry, e.g.,

IMultiLineString myMultiLineString;

IGeometry thisGeometry = myMultiLineString.get_Geometry[0];

§   In JavaScript use:

var myMultiLineString;

var thisGeometry = myMultiLineString.Geometry(0);

 

JavaScript

 

Geometry

 

C#

 

IGeometry Geometry { get; }

 

C++

 

HRESULT Geometry ([in] long Index,

       [out, retval] IGeometry** pVal)

 

Length

Gets the length of the multiline string.

 

JavaScript

 

Length

 

C#

 

double Length { get; }

 

C++

 

HRESULT Length([out, retval] double* dLength)

IsClosed

Gets a Boolean determining if the multiline string is closed.

 

JavaScript

 

IsClosed(

       IsClosed)

 

C#

 

void IsClosed(

       ref bool IsClosed)

 

C++

 

HRESULT IsClosed(

       VARIANT_BOOL* IsClosed)

Parameters

IsClosed

A Boolean that indicates if the multiline is closed.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.