[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.C1TextElementView

C1TextElementView Class

Base class of all classes responsible for text layout and painting.

Namespace: C1.WPF.RichTextBox
Assembly: C1.WPF.RichTextBox.dll
Syntax
public abstract class C1TextElementView
Remarks

C1TextElementView are arranged in a tree similar to C1TextElement. When displaying a document, C1RichTextViewManager constructs one, or more, C1TextElementView for each C1TextElement. The resulting C1TextElementView tree is responsible for doing the document layout, and painting it. The current document layout can be queried from C1RichTextViewManager and its views.

Constructors

Name Description
C1TextElementView(C1RichTextViewManager, C1TextElement)

Constructs a new C1TextElementView.

Properties

Name Description
Children

Gets the collection of children for this view.

Content

Gets the innermost view that is associated with the same C1TextElement as this view.

DesiredSize

Gets the resulting size of the last measure of this view.

Element

Gets the C1TextElement associated with this C1TextElementView.

Origin

Gets the origin of this view.

Parent

Gets the parent of this C1TextElementView, or null if this is the root of the tree.

RelativeOrigin

Gets the origin of this view relative to its parent.

ViewManager

Gets the C1RichTextViewManager associated with this C1TextElementView.