NodeShapeGeometry.Contains(IGeometryHost, PointD, DiagramHitTestInfo) Método

Definição

Obtém um valor que indica se o ponto está dentro do contorno de geometry.Gets a value indicating whether the point is within the geometry outline. A estrutura de tópicos Geometry é definida pelo caminho gráfico usado para desenhar a geometria.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

Parâmetros

geometryHost
IGeometryHost

Os dados da instância para a geometria.The instance data for the geometry.

point
PointD

Coordenadas mundiais em relação à parte superior esquerda do diagrama.Point in world coordinates relative to the Diagram's top-left.

hitTestInfo
DiagramHitTestInfo

O objeto que será atualizado com os resultados do teste de clique.The object which will be updated with the hit test results.

Retornos

Boolean

Retornará true se o ponto estiver dentro da estrutura de tópicos da geometria.Returns true if the point is within the geometry's outline.

Aplica-se a