Share via


NodeShapeGeometry.Contains(IGeometryHost, PointD, DiagramHitTestInfo) Method

Definition

Gets a value indicating whether the point is within the geometry outline. The geometry outline is defined by the graphics path used to draw the geometry.

protected:
 virtual bool Contains(Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ geometryHost, Microsoft::VisualStudio::Modeling::Diagrams::PointD point, Microsoft::VisualStudio::Modeling::Diagrams::DiagramHitTestInfo ^ hitTestInfo);
protected virtual bool Contains (Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost geometryHost, Microsoft.VisualStudio.Modeling.Diagrams.PointD point, Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo hitTestInfo);
abstract member Contains : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo -> bool
override this.Contains : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo -> bool
Protected Overridable Function Contains (geometryHost As IGeometryHost, point As PointD, hitTestInfo As DiagramHitTestInfo) As Boolean

Parameters

geometryHost
IGeometryHost

The instance data for the geometry.

point
PointD

Point in world coordinates relative to the Diagram's top-left.

hitTestInfo
DiagramHitTestInfo

The object which will be updated with the hit test results.

Returns

Returns true if the point is within the geometry's outline.

Applies to