Description
Returns the type of the entity.
Property type
Read-only property
Syntax
Visual Basic |
---|
Public Property EntityType As EntityType |
Example
Private Sub EntityTypeExample()
' This example returns the EntityType property for drawing entities.
Dim ents As Object
Dim ent As Object
Set ents = ActiveDocument.ModelSpace
MsgBox "No. of entities = " & ents.Count
Set ent = ents.Item(ents.Count - 1)
MsgBox "The EntityType property for the last entity is: " & ent.EntityType
End Sub