Propiedad InlineShape.HasSmartArt (Word)

Devuelve True si hay presente en la forma de un diagrama SmartArt. Solo lectura.

Sintaxis

expresión. HasSmartArt

Expresión Variable que representa un objeto 'InlineShape'.

Ejemplo:

En el ejemplo de código siguiente se muestra si la primera forma entre líneas del documento activo contiene algún elemento gráfico SmartArt o no.

Dim myInlineShape As InlineShape 
 
Set myInlineShape = ActiveDocument.InlineShapes(1) 
 
If myInlineShape.HasSmartArt Then 
 MsgBox "The first shape contains SmartArt." 
Else 
 MsgBox "The first shape contains no SmartArt." 
End If

Consulte también

Objeto InlineShape

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.