StyleSheet

StyleSheet class

Represents a style defined in a document.

Constructors

NameDescription
StyleSheetConstructor.

Properties

NameTypeDescription
IDintThe unique ID of the element within its parent element.
NameStringThe name of the element.
NameUStringThe universal name of the element.
LineStyleStyleSheetStyleSheet element from which this style inherits line formatting.
FillStyleStyleSheetStyleSheet element from which this style inherits fill formatting.
TextStyleStyleSheetStyleSheet element from which this style inherits text formatting.
LineLineContains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine
FillFillContains the current fill formatting values for the shape and the shape’s drop shadow, including pattern, foreground col
EventEventContains elements that specify formulas that control shape events.
StylePropStylePropContains elements that control style behavior, such as whether a style includes text, line, and fill attributes.
TextBlockTextBlockContains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block.
ProtectionProtectionLocking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in oth
HelpHelpContains elements specifying the Shape element’s Help file topic and copyright information.
MiscMiscContains elements specifying the Shape element’s Help file topic and copyright information.
RulerGridRulerGridContains elements that specify the settings of the page’s rulers and grid.
ImageImageContains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.
GroupGroupContains elements that control how you add shapes to a group, move members of a group, and select groups.
LayoutLayoutContains elements that control shape placement and connector routing settings.
PageLayoutPageLayoutContains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on
CharsCharCollectionContains a collection of Char elements.
ParasParaCollectionContains a collection of Para elements.
TabsCollectionTabsCollectionContains a collection of Tab elements.
ConnectionsConnectionCollectionContains a collection of Connection elements.
ConnectionABCDsConnectionABCDCollectionContains a collection of ConnectionABCD elements.
ForeignForeignContains elements specifying the width and height of an object from another program used in a Microsoft Visio document.
ForeignDataForeignDataContains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap,

Methods

NameDescription
deepCloneCreates deep copy of this instance.

StyleSheet()

Constructor.

StyleSheet.ID property

The unique ID of the element within its parent element.

Type: int

StyleSheet.Name property

The name of the element.

Type: String

StyleSheet.NameU property

The universal name of the element.

Type: String

StyleSheet.LineStyle property

StyleSheet element from which this style inherits line formatting.

Type: StyleSheet

StyleSheet.FillStyle property

StyleSheet element from which this style inherits fill formatting.

Type: StyleSheet

StyleSheet.TextStyle property

StyleSheet element from which this style inherits text formatting.

Type: StyleSheet

StyleSheet.Line property

Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).

Type: Line

StyleSheet.Fill property

Contains the current fill formatting values for the shape and the shape’s drop shadow, including pattern, foreground color, and background color.

Type: Fill

StyleSheet.Event property

Contains elements that specify formulas that control shape events.

Type: Event

StyleSheet.StyleProp property

Contains elements that control style behavior, such as whether a style includes text, line, and fill attributes.

Type: StyleProp

StyleSheet.TextBlock property

Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block.

Type: TextBlock

StyleSheet.Protection property

Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.

Type: Protection

StyleSheet.Help property

Contains elements specifying the Shape element’s Help file topic and copyright information.

Type: Help

StyleSheet.Misc property

Contains elements specifying the Shape element’s Help file topic and copyright information.

Type: Misc

StyleSheet.RulerGrid property

Contains elements that specify the settings of the page’s rulers and grid.

Type: RulerGrid

StyleSheet.Image property

Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.

Type: Image

StyleSheet.Group property

Contains elements that control how you add shapes to a group, move members of a group, and select groups.

Type: Group

StyleSheet.Layout property

Contains elements that control shape placement and connector routing settings.

Type: Layout

StyleSheet.PageLayout property

Contains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on the page, spacing between all connectors on the page, and routing style for all connectors on the page.

Type: PageLayout

StyleSheet.Chars property

Contains a collection of Char elements.

Type: CharCollection

StyleSheet.Paras property

Contains a collection of Para elements.

Type: ParaCollection

StyleSheet.TabsCollection property

Contains a collection of Tab elements.

Type: TabsCollection

StyleSheet.Connections property

Contains a collection of Connection elements.

Type: ConnectionCollection

StyleSheet.ConnectionABCDs property

Contains a collection of ConnectionABCD elements.

Type: ConnectionABCDCollection

StyleSheet.Foreign property

Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object’s image is offset within its borders.

Type: Foreign

StyleSheet.ForeignData property

Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Type: ForeignData

deepClone()

Creates deep copy of this instance.