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
Derived Classes:
Properties
DesiredSize
The size requested by the element after measurement.
Declaration
Size DesiredSize { get; }
Property Value
Size
The desired size.
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
Rect
The bounding rectangle.
Measure(Size)
Measures the block element with specified available size.
Declaration
[Obsolete("The method is obsolete. Please use Measure(Size availableSize, CancellationToken cancellationToken) instead.")]
Size Measure(Size availableSize)
Parameters
availableSize
Size
The available size.
Returns
Size
The result size.
Measure(Size, CancellationToken)
Measures the block element with specified available size.
Declaration
Size Measure(Size availableSize, CancellationToken cancellationToken)
Parameters
availableSize
Size
The available size.
cancellationToken
The cancellation token to stop the measuring process if necessary.
Returns
Size
The result size.
Split()
Splits this instance.
Declaration
IBlockElement Split()
Returns
The remaining block element.