New to Telerik Document ProcessingStart a free 30-day trial

IBlockElement

Interface

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:

C#
public interface IBlockElement

Derived Classes: BlockTable

Methods

Draws the block element with the specified editor.

C#
void Draw(FixedContentEditor editor, Rect boundingRect)
Parameters:editorFixedContentEditor

The editor.

boundingRectRect

The bounding rectangle.

Measures the block element with specified available size.

C#
Size Measure(Size availableSize, CancellationToken cancellationToken)
Parameters:availableSizeSize

The available size.

cancellationTokenCancellationToken

The cancellation token to stop the measuring process if necessary.

Returns:

Size

The result size.

Splits this instance.

C#
IBlockElement Split()
Returns:

IBlockElement

The remaining block element.

Properties

The size requested by the element after measurement.

C#
Size DesiredSize { get; }
Property Value:

The desired size.

Gets a value indicating whether this instance has open marked content.

C#
bool HasOpenMarkedContent { get; }
Property Value:

Boolean value indicating whether this instance has open marked content.

Indicates whether measurement left content that still needs layout in subsequent passes.

C#
bool HasPendingContent { get; }
Property Value:

Boolean value indicating whether there is any pending content after the last measure.