Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Mueve la forma o las formas seleccionadas al primer plano del orden z.
Sintaxis
expresión. BringToFront
expresión Variable que representa un objeto Shape.
Valor devuelto
Nada
Ejemplo
La macro siguiente muestra cómo mover una forma al primer plano del orden z en una página.
Public Sub BringToFront_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 to the front of the z-order.
vsoShape1.BringToFront
End Sub
Soporte técnico y comentarios
¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.