Page.SpatialSearch property (Visio)
Returns a Selection object whose shapes meet certain criteria in relation to a point that is expressed in the coordinate space of a page, master, or group. Read-only.
Syntax
expression. SpatialSearch
( _x_
, _y_
, _Relation_
, _Tolerance_
, _Flags_
)
expression A variable that represents a Page object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
x | Required | Double | The x-coordinate. |
y | Required | Double | The y-coordinate. |
Relation | Required | Integer | Any combination of the values of the constants visSpatialContainedIn and visSpatialTouching. |
Tolerance | Required | Double | A distance in internal drawing units with respect to the coordinate space. |
Flags | Required | Integer | Flags that influence the result. |
Return value
Selection
Remarks
The relation argument can be any combination of the constants defined in VisSpatialRelationCodes. If relation is not specified, the SpatialSearch property uses both relationships as criteria.
The flags argument can be any combination of the values of the constants defined in VisSpatialRelationFlags in the Visio type library (except visSpatialIncludeHidden, which is reserved for future use, and should not be used).
Use the NoShow cell to determine whether a Geometry section is hidden or visible. Hidden Geometry section sections have a value of TRUE and visible Geometry sections have a value of FALSE in the NoShow cell.
Beginning with Microsoft Visio 2002, if flags contains visSpatialFrontToBack, items in the Selection object returned by the SpatialNeighbors property are ordered front to back. If visSpatialBackToFront is set, the items returned are ordered back to front. If this flag is not set, or if you are running an earlier version of Visio, the order is unpredictable. You can determine the order by using the Index property of the shapes identified in the Selection object .
Note
When it compares two shapes, the SpatialSearch property does not consider the width of a shape's line, shadows, line ends, control points, or connection points.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기