GetLineEdgeData Method (IHatchBoundaryLoop)

GetLineEdgeData Method (IHatchBoundaryLoop) | Send Feedback
See Also Example

Index
  Index of the Line edge whose data to get (see Remarks)

StartPointX[out]
  x coordinate of the start point of the Line

StartPointY[out]
  y coordinate of the start point of the Line

EndPointX[out]
  x coordinate of the end point of the Line

EndPointY[out]
  y coordinate of the end point of the Line

Gets the specified Line edge data for the Hatch boundary.

# Syntax

Visual Basic |
--- | ---
    Sub GetLineEdgeData( _
       ByVal Index As System.Integer, _
       ByRef StartPointX As System.Double, _
       ByRef StartPointY As System.Double, _
       ByRef EndPointX As System.Double, _
       ByRef EndPointY As System.Double _
    )

C# |
--- | ---
    void GetLineEdgeData(
       System.int Index,
       out System.double StartPointX,
       out System.double StartPointY,
       out System.double EndPointX,
       out System.double EndPointY
    )

JavaScript |
--- | ---
    GetLineEdgeData(
       Index : Number
    ) : {
       StartPointX : Number,
       StartPointY : Number,
       EndPointX : Number,
       EndPointY : Number
    }

COM native C++ |
--- | ---
    HRESULT GetLineEdgeData(
       LONG Index,
       DOUBLE* StartPointX,
       DOUBLE* StartPointY,
       DOUBLE* EndPointX,
       DOUBLE* EndPointY
    )

C++ |
--- | ---
    DSRESULT GetLineEdgeData(
       long Index,
       double* StartPointX,
       double* StartPointY,
       double* EndPointX,
       double* EndPointY
    )

#### Parameters

Index
  Index of the Line edge whose data to get (see Remarks)
StartPointX[out]
  x coordinate of the start point of the Line
StartPointY[out]
  y coordinate of the start point of the Line
EndPointX[out]
  x coordinate of the end point of the Line
EndPointY[out] or Return Value
  y coordinate of the end point of the Line

# Example

Get Hatch and Hatch Boundary Loop Data (C#)
Get Hatch and Hatch Boundary Loop Data (VB.NET)
Get Hatch and Hatch Boundary Loop Data (VBA)

# Remarks

This method is valid only when IHatchBoundaryLoop::GetEdgeType is dsHatchEdgeType_e.dsHatchEdgeType_Line.

Before calling this method, call IHatchBoundaryLoop::GetEdgesCount to determine a valid value for Index.

# See Also

####

IHatchBoundaryLoop Interface
IHatchBoundaryLoop Members

# Availability

DraftSight V1R1.3