Propiedad Font.Italic (Word)

True si la fuente o el intervalo tiene formato de cursiva. Long de lectura y escritura.

Sintaxis

expresión. Cursiva

Expresión Variable que representa un objeto Font .

Comentarios

Esta propiedad devuelve True, False o wdUndefined (una combinación de True y False). Puede establecerse en True, False o wdToggle.

Ejemplo:

El ejemplo siguiente busca y quita de la selección el formato de cursiva.

If Selection.Type = wdSelectionNormal Then 
 mySel = Selection.Font.Italic 
 If mySel = wdUndefined or mySel = True Then 
 MsgBox "there is italic text in selection. " _ 
 & "Click OK to remove." 
 Selection.Font.Italic = False 
 Else 
 MsgBox "No italic text in the selection." 
 End If 
Else 
 MsgBox "You need to select some text." 
End If

Consulte también

Objeto Font

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.