New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.TextPrimitiveUtils

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class FormattedTextBlock

Inheritance: objectFormattedTextBlock

Constructors

C#
public FormattedTextBlock()

Properties

C#
public List<TextLine> Lines { get; set; }

Methods

Move text blocks to next line if there is not avaible space for the current line

C#
public void ArrangeLines(bool textWrap, SizeF proposedSize)
Parameters:textWrapboolproposedSizeSizeF

Calculate Size of the whole FormattedTextBlock

C#
public SizeF GetTextSize(SizeF proposedSize, bool useCompatibleTextRendering, StringFormat sf, TextFormatFlags textFormatFlags, bool textWrap)
Parameters:proposedSizeSizeFuseCompatibleTextRenderingboolsfStringFormattextFormatFlagsTextFormatFlagstextWrapboolReturns:

SizeF

C#
public SizeF GetTextSize(SizeF proposedSize, TextParams textParams)
Parameters:proposedSizeSizeFtextParamsTextParamsReturns:

SizeF

Occurs when the mouse pointer is moved over the element.

C#
public void MouseMove(object sender, MouseEventArgs e)
Parameters:senderobjecteMouseEventArgs

Occurs when the mouse is up the element.

C#
public void MouseUp(object sender, MouseEventArgs e)
Parameters:senderobjecteMouseEventArgs

Draw whole FormattedTextBlock

C#
public void PaintFormatTextBlock(IGraphics graphics, RectangleF paintingRectangleParam, bool useCompatibleTextRendering, StringFormat format, TextFormatFlags flags, bool textWrap, bool clipText)
Parameters:graphicsIGraphicspaintingRectangleParamRectangleFuseCompatibleTextRenderingboolformatStringFormatflagsTextFormatFlagstextWrapboolclipTextbool
C#
public void RecalculateBlockLines(bool TextWrap)
Parameters:TextWrapbool