Frame Class

Abstract root of all frame types.
Hierarchy
SystemObject
  WebSupergoo.WordGlue4.LayoutFrame
    More...

 

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

The Frame type exposes the following members.

Constructors
  Name Description
Public method Frame
Create a new Frame.
Top
Properties
  Name Description
Public propertyStatic member All
All the Frames that are currently referenced, indexed by ID. This property is only set if TrackAll(true) has previously been called.
Public property BaseUri
The zip URI to the original document on which this frame was based.
Public property Children

The children of this frame.

For example a ParagraphFrame may a number of LineFrames as children.

Public property DrawAnnotations
Whether to highlight and annotate this frame for debugging purposes. The bounds, margins, padding and clip rectangle will be shown if they are available.
Public property LineNumber
The line number within the original document on which this frame was based. If there is no obvious relationship with a particular line then the value will be -1. In this case you may wish to look at the line associated with the parent object. If you want to take advantage of the this property you will typically first want to set Options.FormatXml to true.
Public property Margins
Get the margins for the frame. The margins extend out from the bounds of the frame and are kept clear of other content.
Public property OriginalSelf

The original Frame on which this is based.

A Frame may spawn siblings. For example if a ParagraphFrame spans two pages it will need to be split into two. However the OriginalSelf for both ParagraphFrames will be the first - original - one.

Public property Padding
Get the padding for the frame. The padding extends in from the bounds of the frame and is kept clear of content within the frame.
Public property Parent

The parent of this Frame.

For example the parent of a TextRunFrame is typically a LineFrame. The parent of that is a ParagraphFrame.

Public property ReflowCount
The number of times which this Frame has been asked to reflow.
Public property StyleStore
The CascadingStyleStore for this Frame.
Public property Summary
A human readable summary of this frame and the properties associated with it.
Top
Methods
  Name Description
Public method Adopt
Adopt a Frame updating references as appropriate. This function should be called after adding a Frame to the Children of another Frame.
Public method GetOriginalXml
Gets from within the Word package, the original document on which a frame was based.
Public method Scan
Perform an action on this frame and all frames underneath it in the tree.
Public methodStatic member TrackAll
Enable or disable tracking of Frames. When tracking is enabled Frames are available via the All property. When this function is called the next ID is reset to zero.
Top
Fields
  Name Description
Public field Bounds
The bounds of this Frame.
Public field ID
The ID for this Frame. IDs are allocated incrementally.
Top
See Also
Hierarchy
SystemObject
  WebSupergoo.WordGlue4.LayoutFrame
    WebSupergoo.WordGlue4.LayoutAltChunkFrame
    WebSupergoo.WordGlue4.LayoutBookmarkFrame
    WebSupergoo.WordGlue4.LayoutBoxFrame
    WebSupergoo.WordGlue4.LayoutColumnFrame
    WebSupergoo.WordGlue4.LayoutDocumentFrame
    WebSupergoo.WordGlue4.LayoutDrawingFrame
    WebSupergoo.WordGlue4.LayoutHorizontalRuleFrame
    WebSupergoo.WordGlue4.LayoutLineFrame
    WebSupergoo.WordGlue4.LayoutNullFrame
    WebSupergoo.WordGlue4.LayoutPageFrame
    WebSupergoo.WordGlue4.LayoutParagraphFrame
    WebSupergoo.WordGlue4.LayoutSectionFrame
    WebSupergoo.WordGlue4.LayoutTabFrame
    WebSupergoo.WordGlue4.LayoutTableCellFrame
    WebSupergoo.WordGlue4.LayoutTableFrame
    WebSupergoo.WordGlue4.LayoutTableRowFrame
    WebSupergoo.WordGlue4.LayoutTextRunFrame