CascadingStyleStore Class

A style store which may inherit from other style stores.
Hierarchy
SystemObject
  WebSupergoo.WordGlue4.LayoutCascadingStyleStore

 

Namespace:  WebSupergoo.WordGlue4.Layout
Assembly:  WordGlue4 (in WordGlue4.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public sealed class CascadingStyleStore

The CascadingStyleStore type exposes the following members.

Constructors
  Name Description
Public method CascadingStyleStore
Create a new CascadingStyleStore.
Top
Properties
  Name Description
Public propertyStatic member All

All the CascadingStyleStores indexed by ID.

This property is only set if TrackAll(true) has previously been called.

Public property BasedOn
The CascadingStyleStore from which this inherits.

Properties which are not defined in this CascadingStyleStore will be inherited from the CascadingStyleStore referenced here.

Public property Entries
A dictionary containing the values in the styles store. Add to or change these values to change the styles in the store. The keys and values you use need to match up with the possible styles and style values. If they do not then an exception will be thrown.
Public property Frame

The Frame which contains this CascadingStyleStore.

A CascadingStyleStore may be shared by multiple Frames. For example if a ParagraphFrame spans two pages it will need to be split into two. In this case both ParagraphFrames will reference the same CascadingStyleStore.

This property represents the original Frame to which this CascadingStyleStore was assigned.

Public property Parent

The parent CascadingStyleStore.

The parent parallels the Frame.Parent in the document. This is needed because some properties can be specified on multiple objects.

For example a cell border might be specified for the entire table but then overridden in a cell.

Public property StyleName

The name of this style.

The value of this property may be null if no name has been assigned.

In the case of a null value, typically the name of the BasedOn CascadingStyleStore is used.

Top
Methods
  Name Description
Public method Clone
Make a clone of this style store.
Public methodStatic member StartTimers
Starts style timers. These allow you to determine how much time is spent on different styles.
Public methodStatic member StopTimers

Stops any started timers and returns the results.

If no results have been gathered the result will be null.

If you pass a time then a percentage can be calculated. If you pass null then the percentage will be zero.

Public methodStatic member TrackAll
Enable or disable tracking of CascadingStyleStores. When tracking is enabled CascadingStyleStores are available via the All property. When this function is called the next ID is reset to zero. For this reason you may wish to set EntryOverrides to null.
Top
Fields
  Name Description
Public field ID
The ID for this CascadingStyleStore. IDs are allocated incrementally.
Top
See Also