Table of contents
Collapse the table of content
Expand the table of content

ContainerProperties.RemoveMember Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Removes a shape or set of shapes from the container.


expression . RemoveMember( ObjectToRemove )

expression A variable that represents a ContainerProperties object.


NameRequired/OptionalData TypeDescription
ObjectToRemoveRequired[UNKNOWN]The shape or shapes to remove from the container. Can be a Shape or Selection selection.

Return Value



The RemoveMember method removes from the container the shapes specified in the ObjectToRemove parameter.

If the container is a list, Microsoft Visio removes the shapes specified in ObjectToRemove both from the list (if it is a list member) and from the list container.

If the ContainerProperties.LockMembership property is True , Visio returns a Disabled error.

If ObjectToRemove does not contain top-level shapes on the page, Visio returns an Invalid Parameter error. However, if ObjectToRemove is not a container member, Visio does not return an error.

© 2018 Microsoft