Share via


Styles Object Members

Visio Automation Reference

Includes a Style object for each style defined in a document.

Methods

  Name Description
Aa342285.methods(en-us,office.12).gif Add Adds a new Style object to a Styles collection.
Aa342285.methods(en-us,office.12).gif GetNames Returns the names of all items in a collection.
Aa342285.methods(en-us,office.12).gif GetNamesU Returns the universal names of all items in a collection.

Properties

  Name Description
Aa342285.properties(en-us,office.12).gif Application Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.
Aa342285.properties(en-us,office.12).gif Count Returns the number of objects in a collection. Read-only.
Aa342285.properties(en-us,office.12).gif Document Gets the Document object that is associated with an object. Read-only.
Aa342285.properties(en-us,office.12).gif EventList Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only.
Aa342285.properties(en-us,office.12).gif Item Returns an item from a collection. The Item property is the default property for all collections. Read-only.
Aa342285.properties(en-us,office.12).gif ItemFromID Returns an item of a collection using the ID of the item. Read-only.
Aa342285.properties(en-us,office.12).gif ItemU Returns an object from a collection. Read-only.
Aa342285.properties(en-us,office.12).gif ObjectType Returns an object's type. Read-only.
Aa342285.properties(en-us,office.12).gif PersistsEvents Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.
Aa342285.properties(en-us,office.12).gif Stat Returns status information for an object. Read-only.

Events

  Name Description
Aa342285.events(en-us,office.12).gif BeforeStyleDelete Occurs before a style is deleted.
Aa342285.events(en-us,office.12).gif 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.
Aa342285.events(en-us,office.12).gif StyleAdded Occurs after a new style is added to a document.
Aa342285.events(en-us,office.12).gif 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.
Aa342285.events(en-us,office.12).gif StyleDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelStyleDelete event.