Interface IBlockElement
Represents a block element.
Namespace: Telerik.Windows.Documents.Fixed.Model.Editing.Flow
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public interface IBlockElement
Properties
DesiredSize
Gets the desired size.
Declaration
Size DesiredSize { get; }
Property Value
System.Windows.Size
The desired size. |
HasPendingContent
Gets if there is any pending content after the last measure.
Declaration
bool HasPendingContent { get; }
Property Value
System.Boolean
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
FixedContentEditor
editor
The editor. |
System.Windows.Rect
boundingRect
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
System.Windows.Size
availableSize
The available size. |
Returns
System.Windows.Size
The result size. |
Measure(Size, CancellationToken)
Measures the block element with specified available size.
Declaration
Size Measure(Size availableSize, CancellationToken cancellationToken)
Parameters
System.Windows.Size
availableSize
The available size. |
System.Threading.CancellationToken
cancellationToken
The cancellation token to stop the measuring process if necessary. |
Returns
System.Windows.Size
The result size. |
Split()
Splits this instance.
Declaration
IBlockElement Split()
Returns
IBlockElement
The remaining block element. |