Compartir por


Propiedad TextFrame2.NoTextRotation (Office)

Devuelve o establece un valor que especifica si el texto en una forma se rota si la forma se rota. Lectura y escritura.

Sintaxis

expresión. NoTextRotation

expresión Expresión que devuelve un objeto TextFrame2 .

Observaciones

Devuelve o establece enumeraciones MsoTriState con los siguientes valores:

  • msoCTrue
  • msoFalse
  • msoTriStateMixed
  • msoTriStateToggle
  • msoTrue

Ejemplo

En el siguiente ejemplo se agrega un rectángulo a myDocument, se agrega texto al rectángulo, se establecen los marcos de texto y luego se especifica que la rotación de texto dentro de la forma no está disponible.

Set myDocument = Worksheets(1) 
With myDocument.Shapes.AddShape(msoShapeRectangle, _ 
 0, 0, 250, 140).TextFrame2 
 .TextRange.Text = "Here is some test text" 
 .MarginBottom = 10 
 .MarginLeft = 10 
 .MarginRight = 10 
 .MarginTop = 10 
 .NoTextRotation = msoFalse 
End With 

Vea también

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.