IMultiLineString
A collection of linestrings. In addition to the other properties inherited from IGeometry, multilinestrings have length.
|
Properties |
|
|
Gets the number of linestrings in the collection. (Inherited from IGeometryCollection) |
|
|
Gets the dimension of the multilinestring. (Inherited from IGeometry) |
|
|
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) |
|
|
Gets an IGeometry, representing a specific multiline in the collection. |
|
|
Gets the geometry type ID. (Inherited from IGeometry) |
|
|
Gets a string representation of the geometry type. (Inherited from IGeometry) |
|
|
Gets the data stored in the specified zero-based index. (Inherited from IGeometryCollection) |
|
|
Gets the length of the multiline string. |
|
|
Gets the number of linestrings in this multilinestring collection. (Inherited from IGeometryCollection) |
|
|
An ISpatialOperator representing the multilinestring’s interaction with another geometry object. (Inherited from IGeometry) |
|
|
An ISpatialRelation that tests the multilinestring’s spatial relationship with other geometries. (Inherited from IGeometry) |
|
|
An IWks representing methods for transferring coordinate system information (WKT and WKB). (Inherited from IGeometry) |
|
|
Methods |
|
|
Adds a linestring to the collection. (Inherited from IGeometryCollection) |
|
|
Returns an exact copy of the selected multilinestring (Inherited from IGeometry) |
|
|
Deletes the selected linestring from the collection. (Inherited from IGeometryCollection) |
|
|
Terminates the edit item mode. (Inherited from IGeometry) |
|
|
Gets a Boolean determining if the multilinestring is closed. A multilinestring is closed if all its linestring elements are closed. |
|
|
Returns whether or not the collection is empty. (Inherited from IGeometry) |
|
|
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) |
|
|
Removes all linestrings from this collection. (Inherited from IGeometry) |
|
|
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.