NodeShapeGeometry.Contains(IGeometryHost, PointD, DiagramHitTestInfo) Metoda

Definice

Načte hodnotu, která označuje, jestli je bod v obrysu geometrie.Gets a value indicating whether the point is within the geometry outline. Obrys geometrie je definován cestou grafiky použitou k vykreslení geometrie.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

Parametry

geometryHost
IGeometryHost

Data instance pro geometrii.The instance data for the geometry.

point
PointD

Bod v souřadnicích světa vzhledem k levému hornímu rohu diagramuPoint in world coordinates relative to the Diagram's top-left.

hitTestInfo
DiagramHitTestInfo

Objekt, který bude aktualizován pomocí výsledků testu přístupů.The object which will be updated with the hit test results.

Návraty

Boolean

Vrátí hodnotu true, pokud je bod v obrysu geometrie.Returns true if the point is within the geometry's outline.

Platí pro