InterfaceIBlockElement
Contract for layoutable block elements that can be measured, drawn, and split during pagination.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Editing.Flow
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public interface IBlockElement
Properties
DesiredSize
The size requested by the element after measurement.
HasOpenMarkedContent
Gets a value indicating whether this instance has open marked content.
Declaration
bool HasOpenMarkedContent { get; }
Property Value
Boolean value indicating whether this instance has open marked content.
HasPendingContent
Indicates whether measurement left content that still needs layout in subsequent passes.
Declaration
bool HasPendingContent { get; }
Property Value
Boolean value indicating whether there is any pending content after the last measure.
Methods
Draw(FixedContentEditor, Rect)
Draws the block element with the specified editor.
Declaration
void Draw(FixedContentEditor editor, Rect boundingRect)
Parameters
editor
The editor.
boundingRect
The bounding rectangle.
Measure(Size)
Measures the block element with specified available size.
Measure(Size, CancellationToken)
Measures the block element with specified available size.
Declaration
Size Measure(Size availableSize, CancellationToken cancellationToken)
Parameters
availableSize
The available size.
cancellationToken
The cancellation token to stop the measuring process if necessary.
Returns
The result size.
Split()
Splits this instance.
Declaration
IBlockElement Split()
Returns
The remaining block element.