ClassFormattedText
Definition
Namespace:Telerik.WinControls.TextPrimitiveUtils
Assembly:Telerik.WinControls.dll
Syntax:
public class FormattedText
Inheritance: objectFormattedText
Constructors
FormattedText(FormattedText)
Copy constructor
Declaration
public FormattedText(FormattedText prototypeFormattedText)
Parameters
prototypeFormattedText
Fields
prevListType
Declaration
protected FormattedText.HTMLLikeListType prevListType
Field Value
Properties
BaseLine
Gets or sets the baseline.
BgColor
Gets or sets the background color.
BlockSize
Get or sets the Size of current text block
BulletFontName
Gets or sets the font name of the bullets.
BulletFontSize
Gets or sets the font size of the bullets.
BulletFontStyle
Gets or sets the font style of the bullets.
Declaration
public FontStyle BulletFontStyle { get; set; }
Property Value
BulletSize
Gets the size of bullets.
ContentAlignment
Gets or sets the content alignment.
Declaration
public ContentAlignment ContentAlignment { get; set; }
Property Value
DrawingRectangle
Gets the drawing rectangle.
FontColor
Gets or sets the font color.
FontName
Gets or sets the font name.
FontSize
Get or sets size of the font. Note: recreate the font
FontStyle
Gets or sets the font style.
HtmlTag
Get or sets HTML tag of the current text block.
Image
Get or sets Image for the current text block Current block should be named Image block
IsClosingTag
Gets or sets a value indicating whether is closing tag.
Link
Gets or sets the link that is opened when the item is clicked.
ListType
Gets or sets the list type.
Declaration
public FormattedText.HTMLLikeListType ListType { get; set; }
Property Value
Number
Gets or sets the number used in ordered list with numbering.
Offset
Gets or sets the offset of the text.
OffsetSize
Gest the offset size of the text.
ShouldDisplayBullet
Gets or sets a value indicating whether to display a bullet.
StartNewLine
Gets or sets a value indicating whether to start a new line.
Methods
GetTextBlockSize(bool, TextFormatFlags)
Gets the size of the text block.
Declaration
public SizeF GetTextBlockSize(bool useCompatibleTextRendering, TextFormatFlags textFormatFlags)
Parameters
useCompatibleTextRendering
textFormatFlags
Returns
PaintFormatText(IGraphics, RectangleF, bool, TextFormatFlags, PointF, float, float, bool)
Declaration
public void PaintFormatText(IGraphics graphics, RectangleF paintingRectangle, bool useCompatibleTextRendering, TextFormatFlags flags, PointF currentLineBeginLocation, float lineHeight, float lineBaseLine, bool clipText)
Parameters
graphics
paintingRectangle
useCompatibleTextRendering
flags
currentLineBeginLocation
lineHeight
lineBaseLine
clipText