共用方式為


ShapeElement.DoFoldToShape(PointD, PointD) Method

Definition

Calculates the point along the ShapeElement perimeter where the given vector will intersect

public:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::PointD DoFoldToShape(Microsoft::VisualStudio::Modeling::Diagrams::PointD potentialPoint, Microsoft::VisualStudio::Modeling::Diagrams::PointD vectorEndpoint);
public virtual Microsoft.VisualStudio.Modeling.Diagrams.PointD DoFoldToShape (Microsoft.VisualStudio.Modeling.Diagrams.PointD potentialPoint, Microsoft.VisualStudio.Modeling.Diagrams.PointD vectorEndpoint);
abstract member DoFoldToShape : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
override this.DoFoldToShape : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
Public Overridable Function DoFoldToShape (potentialPoint As PointD, vectorEndpoint As PointD) As PointD

Parameters

potentialPoint
PointD

Point (in world coordinates) along the bounding rectangle to be folded in to the perimeter of the ShapeElement

vectorEndpoint
PointD

Point (in world coordinates) defining the endpoint of the vector along which folding to the perimeter must take place

Returns

Point (in world coordinates) along the ShapeElement perimeter where the vector will intersect.

Applies to