Thank you for contacting us.
The IBlockElement interface is designed to be used in the following scenario:
- Measure some block element in a desired size.
- Draw the element in the desired size and position.
- Split the element when there is any pending content that needs to be drawn.
The following code snippet shows how to split some long text and draw its parts one below the other. The code uses Block class which implements the IBlockElement interface.
RadFixedDocument document =
FixedContentEditor editor =
Block block =
"Some long text that will be split!"
splitWidth = 50;
height = 10;
Size desiredSize = block.Measure(
Rect rectangle =
Rect(10, height, splitWidth, desiredSize.Height);
height += 10 + rectangle.Height;
hasPendingContent = block.HasPendingContent;
block = block.Split();
I hope this is helpful.
the Telerik team
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.