跳转到内容

Grid Layout Row

Grid Layout Row 可用于在 Grid Layout Group 中将 Shapes 排列成行。

布局介绍 →

放置在 Grid Layout Row 下的每个项目将根据父级 Grid Layout Group 下达的大小约束被放入列中。

行不受其他行的影响。一个包含 10 个项目的 Grid Layout Row 可以与一个包含 3 个项目的 Grid Layout Row 一起嵌套在 Grid Layout Group 中。Spacers 可用于在行中创建空白布局项,以构建均匀列的网格。

Grid Layout Row 只有在与 Grid Layout Group 结合使用时才有用。没有它,它不会做任何事情。

Shape 在单元格中的对齐方式可以通过其 Advanced 选项卡下的 Vertical/Horizontal Layout Alignment 选项设置。参见 Common Attributes(Advanced 选项卡)。

请注意,Text Shape 的 AlignmentVertical Alignment 将被这些设置覆盖。

Common Attributes +


Minimum Column Width - 设置行中每列的最小宽度。连接 Value Array 可以为每列设置个别值。

Ordering Policy - 确定 Shapes 在 Grid Layout Row 中的排列顺序:

  • Layer Order - 根据 Shapes 在 Grid Layout Row 中的顺序排列。层级顶部的 Shape 被视为第一个布局项。
  • Alphabetical - 根据 Layer Name 字母顺序排列 Shapes。
  • Shuffle - 随机排列 Shapes。

Flip Order - 反转 Ordering Policy

Shuffle Seed - 当 Ordering Policy 设置为 Shuffle 时,设置随机种子。