SnapStrengthGeometryY 属性 (Visio) ApplicationSettingsApplicationSettings.SnapStrengthGeometryY property (Visio)

指定当启用对齐时, 形状几何图形沿_y_轴拉伸的距离 (以像素为单位)。Specifies the distance in pixels along the y -axis that shape geometry pulls when snapping is enabled. 读/写。Read/write.



_表达式_一个代表**ApplicationSettings** 对象的变量。expression A variable that represents an ApplicationSettings object.

返回值Return value



设置SnapStrengthGeometryY属性等效于设置 "对齐 & 粘附" 对话框 (单击 "显示" 选项**** 卡上**** **** **** "高级" 选项卡上 "对齐强度" 下的 "对齐强度" 下的 "几何" 选项 (单击查看选项卡)。Setting the SnapStrengthGeometryY property is equivalent to setting the Geometry option under Snap strength on the Advanced tab in the Snap & Glue dialog box (click the Visual Aids arrow on the View tab). 在 UI 中设置对齐强度会将_x_和_y_值设置为相同的值。Setting snap strength in the UI sets both x and y values to the same value.

SnapStrengthGeometryY属性允许的最小值为 0 (零), 最大值为999。The minimum allowable value for the SnapStrengthGeometryY property is 0 (zero), and the maximum is 999. 试图在此范围外设置值将返回错误。Attempting to set a value outside that range returns an error. 默认值为 8。The default value is 8.


以下 Microsoft Visual Basic for Applications (VBA) 宏显示如何使用SnapStrengthGeometryY属性在 "即时" 窗口中打印当前对齐强度几何图形_y_轴设置。This Microsoft Visual Basic for Applications (VBA) macro shows how to use the SnapStrengthGeometryY property to print the current snap strength geometry y -axis setting in the Immediate window. 它还演示了如何从 Visio应用程序对象中获取ApplicationSettings对象。It also shows how to get an ApplicationSettings object from the Visio Application object.

Public Sub SnapStrengthGeometryY_Example() 
 Dim vsoApplicationSettings As Visio.ApplicationSettings 
 Dim lngSnapStrength As Long 
 Set vsoApplicationSettings = Visio.Application.Settings 
 lngSnapStrength = vsoApplicationSettings.SnapStrengthGeometryY 
 Debug.Print lngSnapStrength 
End Sub

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.