MlineElement Method

Searches for the element of the Mline object that contains the point.

Namespace: Teigha.DatabaseServices
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 27.3.0.0
Syntax
public int Element(
        Point3d pt
)

Parameters

pt  Point3d
[in] Point to check for containment within Mline elements.

Return Value

Int32
The index number of the element that contains the point, if successful. If not successful, returns -1.
Remarks
If an element is not found that directly contains the point and the Mline object is not closed, the ends of the MLine object are virtually extended to see if the point lies in the path of any element.
See Also