ContainerProperties Members (Visio)

Represents the set of properties that are specific to a container.

Methods

Name

Description

AddMember

Adds a shape or a set of shapes to the container.

Disband

Removes all member shapes from the container and deletes the container shape.

FitToContents

Forces the container to resize so as to tightly include all member shapes, including any applicable margins between the container and the shapes.

GetListMemberPosition

Returns the ordinal position of the specified shape in the list.

GetListMembers

Returns an array of shape identifiers (IDs) of member shapes in the list.

GetListSpacing

Returns the gap between adjacent member shapes in the list.

GetMargin

Returns the minimal distance, in the specified units, between the edges of the container or list and those of its member shapes.

GetMemberShapes

Returns the shape identifiers (IDs) of all members of the container, as specified.

GetMemberState

Returns the membership state of the specified shape with respect to the container shape.

InsertListMember

Adds a shape or set of shapes to the list in the container.

RemoveMember

Removes a shape or set of shapes from the container.

ReorderListMember

Moves a shape or a set of shapes up or down in the list.

RotateFlipList

Rotates or flips the list direction for a list of shapes.

SetListSpacing

Sets the gap between adjacent member shapes in the list.

SetMargin

Sets the gap between the container and member shapes to the specified size, in the specified units.

Properties

Name

Description

Application

Returns the instance of Microsoft Visio that is associated with an object. Read-only.

ContainerStyle

Determines the visual appearance of the container. Read/write.

ContainerType

Determines whether the container is a normal container or a list container. Read-only.

Document

Gets the Document object that is associated with the ContainerProperties object. Read-only.

HeadingStyle

Determines the appearance and position of the heading of the container. Read/write.

ListAlignment

Specifies how to align and arrange a list shape that you want positioned perpendicular to the main list direction. Read/write.

ListDirection

Determines the primary list direction of the container shapes. Read/write.

LockMembership

Gets or sets a value that determines whether container members can be added, removed, or deleted. Read/write.

ObjectType

Returns visObjTypeContainerProperties, the type of this object. Read-only.

OverlappedList

Creates or removes an overlapped list relationship with another list shape, or returns the target list shape that participates in an overlapped list relationship with the source list shape. Read/write.

ResizeAsNeeded

Determines whether the container boundary resizes automatically to fit its contents. Read/write.

Shape

Returns the Microsoft Visio Shape object that is associated with the container. Read-only.

Stat

Returns status information for an object. Read-only.