Click or drag to resize
FormattingStack Class
Holds a collection of formatting instances that are to be treated as layered on top of each other. The EffectiveFormatting compiles the layers into a single formatting instance that represents the accumulated effect of all the layers.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericListIFormattingGroup
    Sdl.FileTypeSupport.Framework.Core.Utilities.FormattingFormattingStack

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.Formatting
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
[SerializableAttribute]
public class FormattingStack : List<IFormattingGroup>, 
	ICloneable

The FormattingStack type exposes the following members.

Constructors
  NameDescription
Public methodFormattingStack
Creates an empty formatting stack
Protected methodFormattingStack(FormattingStack)
Creates a deep copy of the other object
Top
Properties
  NameDescription
Public propertyEffectiveFormatting
The summary of all formatting on the stack.
Top
Methods
  NameDescription
Public methodClone
Implements deep cloning.
Public methodPop
Removes the top (most significant) formatting on the stack. The removed formatting is returned.
Public methodPush
Adds a new formatting as the most significant formatting on the stack.
Top
Remarks

This is implemented as a list rather than a stack to provide more flexibility in accessing the layers. The order of the items in the list determines their precedence. The most significant item comes first.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments