ClassFormattedTextBlock
Class
Definition
Namespace:Telerik.WinControls.TextPrimitiveUtils
Assembly:Telerik.WinControls.dll
Syntax:
cs-api-definition
public class FormattedTextBlock
Inheritance: objectFormattedTextBlock
Constructors
FormattedTextBlock()
Declaration
cs-api-definition
public FormattedTextBlock()
Properties
Methods
ArrangeLines(bool, SizeF)
Move text blocks to next line if there is not avaible space for the current line
GetTextSize(SizeF, TextParams)
Declaration
cs-api-definition
public SizeF GetTextSize(SizeF proposedSize, TextParams textParams)
Parameters
proposedSize
textParams
Returns
GetTextSize(SizeF, bool, StringFormat, TextFormatFlags, bool)
Calculate Size of the whole FormattedTextBlock
Declaration
cs-api-definition
public SizeF GetTextSize(SizeF proposedSize, bool useCompatibleTextRendering, StringFormat sf, TextFormatFlags textFormatFlags, bool textWrap)
Parameters
proposedSize
useCompatibleTextRendering
sf
textFormatFlags
textWrap
Returns
MouseMove(object, MouseEventArgs)
Occurs when the mouse pointer is moved over the element.
Declaration
cs-api-definition
public void MouseMove(object sender, MouseEventArgs e)
Parameters
sender
e
MouseUp(object, MouseEventArgs)
Occurs when the mouse is up the element.
Declaration
cs-api-definition
public void MouseUp(object sender, MouseEventArgs e)
Parameters
sender
e
PaintFormatTextBlock(IGraphics, RectangleF, bool, StringFormat, TextFormatFlags, bool, bool)
Draw whole FormattedTextBlock
Declaration
cs-api-definition
public void PaintFormatTextBlock(IGraphics graphics, RectangleF paintingRectangleParam, bool useCompatibleTextRendering, StringFormat format, TextFormatFlags flags, bool textWrap, bool clipText)
Parameters
graphics
paintingRectangleParam
useCompatibleTextRendering
format
flags
textWrap
clipText
RecalculateBlockLines(bool)
Declaration
cs-api-definition
public void RecalculateBlockLines(bool TextWrap)
Parameters
TextWrap