Styles Object Members
Visio Automation Reference |
Includes a Style object for each style defined in a document.
Methods
Name | Description | |
---|---|---|
![]() |
Add | Adds a new Style object to a Styles collection. |
![]() |
GetNames | Returns the names of all items in a collection. |
![]() |
GetNamesU | Returns the universal names of all items in a collection. |
Properties
Name | Description | |
---|---|---|
![]() |
Application | Read-only. Returns the instance of Microsoft Office Visio that is associated with an object. |
![]() |
Count | Returns the number of objects in a collection. Read-only. |
![]() |
Document | Gets the Document object that is associated with an object. Read-only. |
![]() |
EventList | Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only. |
![]() |
Item | Returns an item from a collection. The Item property is the default property for all collections. Read-only. |
![]() |
ItemFromID | Returns an item of a collection using the ID of the item. Read-only. |
![]() |
ItemU | Returns an object from a collection. Read-only. |
![]() |
ObjectType | Returns an object's type. Read-only. |
![]() |
PersistsEvents | Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only. |
![]() |
Stat | Returns status information for an object. Read-only. |
Events
Name | Description | |
---|---|---|
![]() |
BeforeStyleDelete | Occurs before a style is deleted. |
![]() |
QueryCancelStyleDelete | Occurs before the application deletes a style in response to a user action in the interface. If any event handler returns True, the operation is canceled. |
![]() |
StyleAdded | Occurs after a new style is added to a document. |
![]() |
StyleChanged | Occurs after the name of a style is changed or a change to the style propagates to objects to which the style is applied. |
![]() |
StyleDeleteCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelStyleDelete event. |