ActivityPreviewDesigner.GetDropTargets(Point) 方法
定义
返回表示 ActivityPreviewDesigner 中的有效放置位置的矩形数组。Returns an array of rectangles that represent the valid drop locations within the ActivityPreviewDesigner.
protected:
override cli::array <System::Drawing::Rectangle> ^ GetDropTargets(System::Drawing::Point dropPoint);
protected override System.Drawing.Rectangle[] GetDropTargets (System.Drawing.Point dropPoint);
override this.GetDropTargets : System.Drawing.Point -> System.Drawing.Rectangle[]
Protected Overrides Function GetDropTargets (dropPoint As Point) As Rectangle()
参数
- dropPoint
- Point
用于定义放置目标的 X 坐标和 Y 坐标的 Point。The Point that defines the x- and y-coordinates for the drop target.
返回
表示 Rectangle 中的有效放置位置的 ActivityPreviewDesigner 数组。The Rectangle array that represents the valid drop locations within the ActivityPreviewDesigner.
注解
如果 dropPoint 位于 ActivityPreviewDesigner 预览栏中,则 GetDropTargets 返回栏中的可能放置目标。If dropPoint is in the ActivityPreviewDesigner preview strip, GetDropTargets returns the possible drop targets in the strip.