StyleSheet

StyleSheet class

Represents a style defined in a document.

StyleSheet()

Constructor.

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.