Share via


Propiedad TextFrame.MarginTop (PowerPoint)

Devuelve o establece la distancia (en puntos) entre la parte superior del marco de texto y la parte superior del rectángulo inscrito de la forma que contiene el texto. Lectura y escritura.

Sintaxis

expresión. MarginTop

Expresión Variable que representa un objeto TextFrame .

Valor devuelto

Simple

Ejemplo:

En este ejemplo se agrega un rectángulo a myDocument, se agrega texto al rectángulo y, a continuación, se establecen los márgenes del marco de texto.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.AddShape(msoShapeRectangle, _
        0, 0, 250, 140).TextFrame
    .TextRange.Text = "Here is some test text"
    .MarginBottom = 0
    .MarginLeft = 10
    .MarginRight = 0
    .MarginTop = 20
End With

Consulte también

Objeto TextFrame

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.