TextFrames in MigraDoc are really handy but when i add paragraphs to the textframes that exceeds the boundary of the text frame, it simply overflows beyond the frame. But I dont want the text to go beyond the frame .
I have defined text frame boundaries
TextFrame textFrame = new TextFrame();
textFrame.RelativeHorizontal = RelativeHorizontal.Page;
textFrame.RelativeVertical = RelativeVertical.Page;
textFrame.WrapFormat.DistanceLeft = new Unit(_mContainer.dimension.X, UnitType.Point);
textFrame.WrapFormat.DistanceTop = new Unit(_mContainer.dimension.Y, UnitType.Point);
textFrame.Width = new Unit(_mContainer.dimension.Width, UnitType.Point);
textFrame.Height = new Unit(_mContainer.dimension.Height, UnitType.Point);