Class FormattedTextBlock
Inheritance
Inherited Members
Namespace: Telerik.WinControls.TextPrimitiveUtils
Assembly: Telerik.WinControls.dll
Syntax
public class FormattedTextBlock
Constructors
FormattedTextBlock()
Declaration
public FormattedTextBlock()
Properties
Lines
Declaration
public List<TextLine> Lines { get; set; }
Property Value
System.Collections.Generic.List<TextLine>
|
Methods
ArrangeLines(Boolean, SizeF)
Move text blocks to next line if there is not avaible space for the current line
Declaration
public void ArrangeLines(bool textWrap, SizeF proposedSize)
Parameters
System.Boolean
textWrap
|
System.Drawing.SizeF
proposedSize
|
GetTextSize(SizeF, Boolean, StringFormat, TextFormatFlags, Boolean)
Calculate Size of the whole FormattedTextBlock
Declaration
public SizeF GetTextSize(SizeF proposedSize, bool useCompatibleTextRendering, StringFormat sf, TextFormatFlags textFormatFlags, bool textWrap)
Parameters
System.Drawing.SizeF
proposedSize
|
System.Boolean
useCompatibleTextRendering
|
System.Drawing.StringFormat
sf
|
System.Windows.Forms.TextFormatFlags
textFormatFlags
|
System.Boolean
textWrap
|
Returns
System.Drawing.SizeF
|
GetTextSize(SizeF, TextParams)
Declaration
public SizeF GetTextSize(SizeF proposedSize, TextParams textParams)
Parameters
System.Drawing.SizeF
proposedSize
|
TextParams
textParams
|
Returns
System.Drawing.SizeF
|
MouseMove(Object, MouseEventArgs)
Occurs when the mouse pointer is moved over the element.
Declaration
public void MouseMove(object sender, MouseEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Forms.MouseEventArgs
e
|
MouseUp(Object, MouseEventArgs)
Occurs when the mouse is up the element.
Declaration
public void MouseUp(object sender, MouseEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Forms.MouseEventArgs
e
|
PaintFormatTextBlock(IGraphics, RectangleF, Boolean, StringFormat, TextFormatFlags, Boolean, Boolean)
Draw whole FormattedTextBlock
Declaration
public void PaintFormatTextBlock(IGraphics graphics, RectangleF paintingRectangleParam, bool useCompatibleTextRendering, StringFormat format, TextFormatFlags flags, bool textWrap, bool clipText)
Parameters
IGraphics
graphics
|
System.Drawing.RectangleF
paintingRectangleParam
|
System.Boolean
useCompatibleTextRendering
|
System.Drawing.StringFormat
format
|
System.Windows.Forms.TextFormatFlags
flags
|
System.Boolean
textWrap
|
System.Boolean
clipText
|
RecalculateBlockLines(Boolean)
Declaration
public void RecalculateBlockLines(bool TextWrap)
Parameters
System.Boolean
TextWrap
|