FormattedText
Stores the text, formatting, image, and list metadata for one segment in a formatted text block.
Definition
Namespace:Telerik.WinControls.TextPrimitiveUtils
Assembly:Telerik.WinControls.dll
Syntax:
public class FormattedText
Inheritance: objectFormattedText
Constructors
Default constructor
public FormattedText()
Copy constructor
public FormattedText(FormattedText prototypeFormattedText)
Fields
protected FormattedText.HTMLLikeListType prevListType
Properties
Gets or sets the font name of the bullets.
public string BulletFontName { get; set; }
Gets or sets the font size of the bullets.
public float BulletFontSize { get; set; }
Gets or sets the font style of the bullets.
public FontStyle BulletFontStyle { get; set; }
Gets the size of bullets.
public SizeF BulletSize { get; }
Gets or sets the content alignment.
public ContentAlignment ContentAlignment { get; set; }
Gets the drawing rectangle.
public RectangleF DrawingRectangle { get; }
Get or sets size of the font. Note: recreate the font
public float FontSize { get; set; }
Get or sets Image for the current text block Current block should be named Image block
public Image Image { get; set; }
Gets or sets a value indicating whether is closing tag.
public bool IsClosingTag { get; set; }
Gets or sets the link that is opened when the item is clicked.
public string Link { get; set; }
Gets or sets the list type.
public FormattedText.HTMLLikeListType ListType { get; set; }
Gets or sets the number used in ordered list with numbering.
public int Number { get; set; }
Gest the offset size of the text.
public float OffsetSize { get; }
Gets or sets a value indicating whether to display a bullet.
public bool ShouldDisplayBullet { get; set; }
Gets or sets a value indicating whether to start a new line.
public bool StartNewLine { get; set; }
Methods
Gets the size of the text block.
public SizeF GetTextBlockSize(bool useCompatibleTextRendering, TextFormatFlags textFormatFlags)
Draws the segment's image, if present, and then its text using the selected text-rendering path.
public void PaintFormatText(IGraphics graphics, RectangleF paintingRectangle, bool useCompatibleTextRendering, TextFormatFlags flags, PointF currentLineBeginLocation, float lineHeight, float lineBaseLine, bool clipText)
The graphics context used for drawing.
paintingRectangleRectangleFThe bounds available for the text segment.
useCompatibleTextRenderingbooltrue to draw with GDI+; otherwise, use TextRenderer.
flagsTextFormatFlagsThe text-rendering flags used by TextRenderer.
currentLineBeginLocationPointFThe start point of this segment within its line.
lineHeightfloatThe measured height of the containing line.
lineBaseLinefloatThe baseline of the containing line, used to align this segment.
clipTextbooltrue to clip GDI+ text to its drawing rectangle.
The literal
token is replaced with a regular space before drawing.