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

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

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

按照 z-顺序将形状或选定形状上移一层。Brings the shape or selected shapes forward one position in the z-order.

语法Syntax

表达式BringForwardexpression . BringForward

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

返回值Return Value

Nothing

示例Example

以下宏显示如何在页面上按照 z-顺序将形状上移一层。The following macro shows how to bring a shape forward in the z-order on a page.


Public Sub BringForward_Example() 

 Dim vsoShape1 As Visio.Shape 
 Dim vsoShape2 As Visio.Shape 
 Dim vsoShape3 As Visio.Shape 

 'Draw three rectangles. 
 Set vsoShape1 = ActivePage.DrawRectangle(1, 1, 4, 4) 
 vsoShape1.Text = "1" 
 Set vsoShape2 = ActivePage.DrawRectangle(2, 2, 5, 5) 
 vsoShape2.Text = "2" 
 Set vsoShape3 = ActivePage.DrawRectangle(3, 3, 6, 6) 
 vsoShape3.Text = "3" 

 'Bring vsoShape1 forward one position in the z-order. 
 vsoShape1.BringForward 

End Sub
© 2018 Microsoft