Table of contents
TOC
折叠目录
展开目录

Selection.LayoutIncremental 方法 (Visio)Selection.LayoutIncremental Method (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

对所选内容中的形状位置进行细微的调整,以便更好地对齐形状或互相之间均匀间隔。Makes small adjustments to the position of shapes in the selection to better align the shapes or to space them evenly from other shapes.

语法Syntax

表达式LayoutIncrementalAlignOrSpaceAlignHorizontalAlignVerticalSpaceHorizontalSpaceVerticalUnitCodeexpression . LayoutIncremental( AlignOrSpace , AlignHorizontal , AlignVertical , SpaceHorizontal , SpaceVertical , UnitCode )

表达式_一个表示选定对象的变量。_expression A variable that represents a Selection object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
AlignOrSpaceAlignOrSpace必需RequiredVisLayoutIncrementalTypeVisLayoutIncrementalType要执行的增量布局操作的类型(对齐和/或间隔)。有关可能的值,请参阅“说明”。The type of incremental layout action to perform (alignment, spacing, or both). See Remarks for possible values.
AlignHorizontalAlignHorizontal必需RequiredVisLayoutHorzAlignTypeVisLayoutHorzAlignType指示 Microsoft Visio 在增量对齐时如何水平对齐形状。有关可能的值,请参阅“说明”。Indicates how Microsoft Visio aligns shapes horizontally when it aligns incrementally. See Remarks for possible values.
AlignVerticalAlignVertical必需RequiredVisLayoutVertAlignTypeVisLayoutVertAlignType指示 Visio 在增量对齐时如何垂直对齐形状(布局样式为圆形时除外)。有关可能的值,请参阅“说明”。Indicates how Visio aligns shapes vertically when it aligns incrementally (except if layout style is circular). See Remarks for possible values.
SpaceHorizontalSpaceHorizontal必需RequiredDoubleDouble边对边水平间距。必须大于或等于零。The edge-to-edge horizontal spacing. Must be greater than or equal to zero.
SpaceVerticalSpaceVertical必需RequiredDoubleDouble边对边垂直间距(布局样式为圆形时除外)。必须大于或等于零。The edge-to-edge vertical spacing (except if layout style is circular). Must be greater than or equal to zero.
UnitCodeUnitCode必需RequiredVisUnitCodesVisUnitCodes间距值的单位。The units for the spacing values.

返回值Return Value

执行任何操作Nothing

注解Remarks

AlignOrSpace_参数必须是一个或两个以下的VisLayoutIncrementalType常量 (3) 的组合。The _AlignOrSpace parameter must be one or the combination of both (3) of the following VisLayoutIncrementalType constants.

常量ConstantValue说明Description
visLayoutIncrAlignvisLayoutIncrAlign11对齐形状。Align shapes.
visLayoutIncrSpacevisLayoutIncrSpace22使形状等距排列。Space shapes evenly.

AlignHorizontal_参数必须是下面的VisLayoutHorzAlignType常量之一。The _AlignHorizontal parameter must be one of the following VisLayoutHorzAlignType constants.

常量ConstantValue说明Description
visLayoutHorzAlignNonevisLayoutHorzAlignNone00不在水平方向对齐。Do not align horizontally.
visLayoutHorzAlignDefaultvisLayoutHorzAlignDefault11Visio 选择如何在水平方向对齐。Visio chooses how to align horizontally.
visLayoutHorzAlignLeftvisLayoutHorzAlignLeft22对齐形状的左边。Align the left edges of the shapes.
visLayoutHorzAlignCentervisLayoutHorzAlignCenter33对齐形状的中心。Align the centers of the shapes.
visLayoutHorzAlignRightvisLayoutHorzAlignRight44对齐形状的右边。Align the right edges of the shapes.

AlignVertical_参数必须是下面的VisLayoutVertAlignType常量之一。The _AlignVertical parameter must be one of the following VisLayoutVertAlignType constants.

常量ConstantValue说明Description
visLayoutVertAlignNonevisLayoutVertAlignNone00不在垂直方向对齐。Do not align vertically.
visLayoutVertAlignDefaultvisLayoutVertAlignDefault11Visio 选择如何在垂直方向对齐。Visio chooses how to align vertically.
visLayoutVertAlignTopvisLayoutVertAlignTop22对齐形状的顶边。Align the top edges of the shapes.
visLayoutVertAlignMiddlevisLayoutVertAlignMiddle33对齐形状的中部。Align the middles of the shapes.
visLayoutVertAlignBottomvisLayoutVertAlignBottom44对齐形状的底边。Align the bottom edges of the shapes.

如果_AlignOrSpace_ visLayoutIncrAlignAlignHorizontalvisLayoutHorzAlignNone ,以外的值必须或者_AlignVertical_必须是除visLayoutVertAlignNone以外的值。If AlignOrSpace is visLayoutIncrAlign , either AlignHorizontal must be a value other than visLayoutHorzAlignNone , or AlignVertical must be a value other than visLayoutVertAlignNone .

如果_AlignOrSpace_ visLayoutIncrSpaceAlignHorizontal_和_AlignVertical_必须大于零。If _AlignOrSpace is visLayoutIncrSpace , both AlignHorizontal and AlignVertical must be greater than zero.

如果_AlignOrSpace_ , visLayoutIncrAlignvisLayoutIncrSpace的组合两个条件必须成立。If AlignOrSpace is a combination of visLayoutIncrAlign and visLayoutIncrSpace , both of these conditions must be true.

如果页面布局样式为圆形,Visio 将使用仅_AlignHorizontal_值来确定是否对齐和仅_SpaceHorizontal_参数值来确定是否忽略_AlignVertical_和_的共享空间SpaceVertical_参数值,分别。在这种情况下,如果将visLayoutHorzAlignNone以外的值传递为_AlignHorizontal_ ,Visio 将执行对齐方式。同样,如果您传递的任何值大于_SpaceHorizontal_的零,Visio 将执行间距。If the page layout style is circular, Visio uses only the AlignHorizontal value to determine whether to align, and only the SpaceHorizontal parameter value to determine whether to space, ignoring the AlignVertical and SpaceVertical parameter values, respectively. In this case, if you pass a value other than visLayoutHorzAlignNone for AlignHorizontal , Visio performs the alignment. Similarly, if you pass any value greater than zero for SpaceHorizontal , Visio performs the spacing.

© 2018 Microsoft