Oharra
Orrialde honetara sartzeak baimena behar du. Saioa hasteko edo direktorioak aldatzen saia zaitezke.
Orrialde honetara sartzeak baimena behar du. Direktorioak aldatzen saia zaitezke.
Representa el marco de texto en un objeto Shape. Contiene el texto en el marco de texto y las propiedades y métodos que controlan la alineación y la fijación del marco de texto.
Ejemplo
Utilice la propiedad TextFrame para devolver un objeto TextFrame. En el ejemplo siguiente se agrega un rectángulo a myDocument, agrega texto al rectángulo y se establece 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 = 10
.MarginLeft = 10
.MarginRight = 10
.MarginTop = 10
End With
Utilice el HasTextFramepropiedad para determinar si una forma tiene un marco de texto y utilizar el HasTextpropiedad para determinar si el marco de texto contiene texto, tal como se muestra en el ejemplo siguiente.
Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
If s.HasTextFrame Then
With s.TextFrame
If .HasText Then MsgBox .TextRange.Text
End With
End If
Next
Métodos
| Nombre |
|---|
| DeleteText |
Propiedades
| Nombre |
|---|
| Application |
| AutoSize |
| Creator |
| HasText |
| HorizontalAnchor |
| MarginBottom |
| MarginLeft |
| MarginRight |
| MarginTop |
| Orientación |
| Parent |
| Ruler |
| TextRange |
| VerticalAnchor |
| WordWrap |
Vea también
Referencia del modelo de objetos de PowerPoint
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.