StyleSheet class

StyleSheet class

Represents a style defined in a document.

The StyleSheet type exposes the following members:

Constructors

ConstructorDescription
StyleSheet()Constructor.

Properties

PropertyDescription
idThe unique ID of the element within its parent element.
nameThe name of the element.
name_uThe universal name of the element.
line_styleStyleSheet element from which this style inherits line formatting.
fill_styleStyleSheet element from which this style inherits fill formatting.
text_styleStyleSheet element from which this style inherits text formatting.
lineContains 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).
fillContains the current fill formatting values for the shape and the shape’s drop shadow, including pattern, foreground color, and background color.
eventContains elements that specify formulas that control shape events.
style_propContains elements that control style behavior, such as whether a style includes text, line, and fill attributes.
text_blockContains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block.
protectionLocking 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.
helpContains elements specifying the Shape element’s Help file topic and copyright information.
miscContains elements specifying the Shape element’s Help file topic and copyright information.
ruler_gridContains elements that specify the settings of the page’s rulers and grid.
imageContains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.
groupContains elements that control how you add shapes to a group, move members of a group, and select groups.
layoutContains elements that control shape placement and connector routing settings.
page_layoutContains 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.
charsContains a collection of Char elements.
parasContains a collection of Para elements.
tabs_collectionContains a collection of Tab elements.
connectionsContains a collection of Connection elements.
connection_abc_dsContains a collection of ConnectionABCD elements.
foreignContains 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.
foreign_dataContains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Methods

MethodDescription
clone()Creates deep copy of this instance.

See Also