StyleSheet
StyleSheet class
Represents a style defined in a document.
Constructors
| Name | Description |
|---|---|
| StyleSheet | Constructor. |
Properties
| Name | Type | Description |
|---|---|---|
| ID | int | The unique ID of the element within its parent element. |
| Name | String | The name of the element. |
| NameU | String | The universal name of the element. |
| LineStyle | StyleSheet | StyleSheet element from which this style inherits line formatting. |
| FillStyle | StyleSheet | StyleSheet element from which this style inherits fill formatting. |
| TextStyle | StyleSheet | StyleSheet element from which this style inherits text formatting. |
| Line | Line | Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine |
| Fill | Fill | Contains the current fill formatting values for the shape and the shape’s drop shadow, including pattern, foreground col |
| Event | Event | Contains elements that specify formulas that control shape events. |
| StyleProp | StyleProp | Contains elements that control style behavior, such as whether a style includes text, line, and fill attributes. |
| TextBlock | TextBlock | Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block. |
| Protection | Protection | Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in oth |
| Help | Help | Contains elements specifying the Shape element’s Help file topic and copyright information. |
| Misc | Misc | Contains elements specifying the Shape element’s Help file topic and copyright information. |
| RulerGrid | RulerGrid | Contains elements that specify the settings of the page’s rulers and grid. |
| Image | Image | Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap. |
| Group | Group | Contains elements that control how you add shapes to a group, move members of a group, and select groups. |
| Layout | Layout | Contains elements that control shape placement and connector routing settings. |
| PageLayout | PageLayout | Contains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on |
| Chars | CharCollection | Contains a collection of Char elements. |
| Paras | ParaCollection | Contains a collection of Para elements. |
| TabsCollection | TabsCollection | Contains a collection of Tab elements. |
| Connections | ConnectionCollection | Contains a collection of Connection elements. |
| ConnectionABCDs | ConnectionABCDCollection | Contains a collection of ConnectionABCD elements. |
| Foreign | Foreign | Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. |
| ForeignData | ForeignData | Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, |
Methods
| Name | Description |
|---|---|
| deepClone | Creates 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.