skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FormattedText

Inheritance
System.Object
FormattedText
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.TextPrimitiveUtils
Assembly: Telerik.WinControls.dll

Syntax

public class FormattedText

Constructors

FormattedText()

Default constructor

Declaration
public FormattedText()

FormattedText(FormattedText)

Copy constructor

Declaration
public FormattedText(FormattedText prototypeFormattedText)
Parameters
FormattedText prototypeFormattedText

Fields

prevListType

Declaration
protected FormattedText.HTMLLikeListType prevListType
Field Value
FormattedText.HTMLLikeListType

Properties

BaseLine

Gets or sets the baseline.

Declaration
public float BaseLine { get; set; }
Property Value
System.Single

BgColor

Gets or sets the background color.

Declaration
public Color? BgColor { get; set; }
Property Value
System.Nullable<System.Drawing.Color>

BlockSize

Get or sets the Size of current text block

Declaration
public SizeF BlockSize { get; }
Property Value
System.Drawing.SizeF

BulletFontName

Gets or sets the font name of the bullets.

Declaration
public string BulletFontName { get; set; }
Property Value
System.String

BulletFontSize

Gets or sets the font size of the bullets.

Declaration
public float BulletFontSize { get; set; }
Property Value
System.Single

BulletFontStyle

Gets or sets the font style of the bullets.

Declaration
public FontStyle BulletFontStyle { get; set; }
Property Value
System.Drawing.FontStyle

BulletSize

Gets the size of bullets.

Declaration
public SizeF BulletSize { get; }
Property Value
System.Drawing.SizeF

ContentAlignment

Gets or sets the content alignment.

Declaration
public ContentAlignment ContentAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

DrawingRectangle

Gets the drawing rectangle.

Declaration
public RectangleF DrawingRectangle { get; }
Property Value
System.Drawing.RectangleF

FontColor

Gets or sets the font color.

Declaration
public Color FontColor { get; set; }
Property Value
System.Drawing.Color

FontName

Gets or sets the font name.

Declaration
public string FontName { get; set; }
Property Value
System.String

FontSize

Get or sets size of the font. Note: recreate the font

Declaration
public float FontSize { get; set; }
Property Value
System.Single

FontStyle

Gets or sets the font style.

Declaration
public FontStyle FontStyle { get; set; }
Property Value
System.Drawing.FontStyle

HtmlTag

Get or sets HTML tag of the current text block.

Declaration
public string HtmlTag { get; set; }
Property Value
System.String

Image

Get or sets Image for the current text block Current block should be named Image block

Declaration
public Image Image { get; set; }
Property Value
System.Drawing.Image

IsClosingTag

Gets or sets a value indicating whether is closing tag.

Declaration
public bool IsClosingTag { get; set; }
Property Value
System.Boolean

Link

Gets or sets the link that is opened when the item is clicked.

Declaration
public string Link { get; set; }
Property Value
System.String

ListType

Gets or sets the list type.

Declaration
public FormattedText.HTMLLikeListType ListType { get; set; }
Property Value
FormattedText.HTMLLikeListType

Number

Gets or sets the number used in ordered list with numbering.

Declaration
public int Number { get; set; }
Property Value
System.Int32

Offset

Gets or sets the offset of the text.

Declaration
public int Offset { get; set; }
Property Value
System.Int32

OffsetSize

Gest the offset size of the text.

Declaration
public float OffsetSize { get; }
Property Value
System.Single

ShouldDisplayBullet

Gets or sets a value indicating whether to display a bullet.

Declaration
public bool ShouldDisplayBullet { get; set; }
Property Value
System.Boolean

StartNewLine

Gets or sets a value indicating whether to start a new line.

Declaration
public bool StartNewLine { get; set; }
Property Value
System.Boolean

Text

Get or set the text.

Declaration
public string Text { get; set; }
Property Value
System.String

Methods

GetTextBlockSize(Boolean, TextFormatFlags)

Gets the size of the text block.

Declaration
public SizeF GetTextBlockSize(bool useCompatibleTextRendering, TextFormatFlags textFormatFlags)
Parameters
System.Boolean useCompatibleTextRendering

System.Windows.Forms.TextFormatFlags textFormatFlags

Returns
System.Drawing.SizeF

PaintFormatText(IGraphics, RectangleF, Boolean, TextFormatFlags, PointF, Single, Single, Boolean)

Declaration
public void PaintFormatText(IGraphics graphics, RectangleF paintingRectangle, bool useCompatibleTextRendering, TextFormatFlags flags, PointF currentLineBeginLocation, float lineHeight, float lineBaseLine, bool clipText)
Parameters
IGraphics graphics

System.Drawing.RectangleF paintingRectangle

System.Boolean useCompatibleTextRendering

System.Windows.Forms.TextFormatFlags flags

System.Drawing.PointF currentLineBeginLocation

System.Single lineHeight

System.Single lineBaseLine

System.Boolean clipText

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.