Interface
IBlockElement

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:

cs-api-definition
public interface IBlockElement

Properties

DesiredSize

The size requested by the element after measurement.

Declaration

cs-api-definition
Size DesiredSize { get; }

Property Value

Size

The desired size.

HasOpenMarkedContent

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

Declaration

cs-api-definition
bool HasOpenMarkedContent { get; }

Property Value

bool

Boolean value indicating whether this instance has open marked content.

HasPendingContent

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

Declaration

cs-api-definition
bool HasPendingContent { get; }

Property Value

bool

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

cs-api-definition
void Draw(FixedContentEditor editor, Rect boundingRect)

Parameters

editor

FixedContentEditor

The editor.

boundingRect

Rect

The bounding rectangle.

Measure(Size)

Measures the block element with specified available size.

Declaration

cs-api-definition
[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

cs-api-definition
Size Measure(Size availableSize, CancellationToken cancellationToken)

Parameters

availableSize

Size

The available size.

cancellationToken

CancellationToken

The cancellation token to stop the measuring process if necessary.

Returns

Size

The result size.

Split()

Splits this instance.

Declaration

cs-api-definition
IBlockElement Split()

Returns

IBlockElement

The remaining block element.