skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    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
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TextProperties

Represents a collection of text formatting properties that control the appearance of text in a document. This includes font settings, text decorations, colors, and alignment options.

Inheritance
System.Object
PropertiesBase<TextProperties>
TextProperties
Inherited Members
PropertiesBase<TextProperties>.Save()
PropertiesBase<TextProperties>.Restore()
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.Windows.Documents.Fixed.Model.Editing
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public class TextProperties : PropertiesBase<TextProperties>

Constructors

TextProperties()

Initializes a new instance of the TextProperties class.

Declaration
public TextProperties()

Fields

BaselineAlignment

Gets or sets the baseline alignment which controls the vertical positioning of text relative to the baseline. This allows for creating subscripts, superscripts, or other vertical text alignments.

Declaration
public BaselineAlignment BaselineAlignment
Field Value
BaselineAlignment

A BaselineAlignment enumeration value that determines the vertical position of text relative to the baseline.

CharacterSpacing

Gets or sets the spacing between characters, measured in device-independent units. Positive values increase spacing, while negative values decrease spacing.

Declaration
public double? CharacterSpacing
Field Value
System.Nullable<System.Double>

A nullable double value that specifies the additional space between characters.

FontSize

Gets or sets the size of the font in points.

Declaration
public double FontSize
Field Value
System.Double

A double value representing the font size in points.

HighlightColor

Gets or sets the color used for text highlighting (background color behind the text).

Declaration
public ColorBase HighlightColor
Field Value
ColorBase

A ColorBase object that defines the background highlight color for the text.

HorizontalScaling

Gets or sets the horizontal scaling of text as a percentage of normal width. Values above 100 stretch the text, while values below 100 compress it horizontally.

Declaration
public double? HorizontalScaling
Field Value
System.Nullable<System.Double>

A nullable double value that specifies the horizontal scaling percentage.

RenderingMode

Gets or sets the text rendering mode which controls how text is visually rendered. This affects whether text is filled, stroked, or used as a clipping path.

Declaration
public RenderingMode RenderingMode
Field Value
RenderingMode

A RenderingMode enumeration value that determines how text is rendered.

StrikethroughColor

Gets or sets the color of the strikethrough decoration.

Declaration
public ColorBase StrikethroughColor
Field Value
ColorBase

A ColorBase object that defines the color of the strikethrough decoration.

StrikethroughPattern

Gets or sets the strikethrough pattern applied to text. This determines the visual style of the strikethrough decoration.

Declaration
public StrikethroughPattern StrikethroughPattern
Field Value
StrikethroughPattern

A StrikethroughPattern enumeration value that defines the appearance of the strikethrough.

UnderlineColor

Gets or sets the color of the underline decoration.

Declaration
public ColorBase UnderlineColor
Field Value
ColorBase

A ColorBase object that defines the color of the underline decoration.

UnderlinePattern

Gets or sets the underline pattern applied to text. This determines the visual style of the underline decoration.

Declaration
public UnderlinePattern UnderlinePattern
Field Value
UnderlinePattern

An UnderlinePattern enumeration value that defines the appearance of the underline.

WordSpacing

Gets or sets the additional spacing between words, measured in device-independent units. Positive values increase spacing, while negative values decrease spacing.

Declaration
public double? WordSpacing
Field Value
System.Nullable<System.Double>

A nullable double value that specifies the additional space between words.

Properties

Font

Gets or sets the font used for rendering text. This defines the typeface, style, and other font characteristics used when displaying text.

Declaration
public FontBase Font { get; set; }
Property Value
FontBase

A FontBase object that represents the font to be used for text rendering.

Exceptions
System.ArgumentNullException

Thrown when attempting to set the font to null.

Methods

CopyFrom(TextProperties)

Copies the text properties from other instance.

Declaration
public override void CopyFrom(TextProperties textProperties)
Parameters
TextProperties textProperties

The text properties.

Overrides
Telerik.Windows.Documents.Fixed.Model.Editing.PropertiesBase<Telerik.Windows.Documents.Fixed.Model.Editing.TextProperties>.CopyFrom(Telerik.Windows.Documents.Fixed.Model.Editing.TextProperties)

TrySetFont(FontFamily)

Tries to set the current font.

Declaration
public bool TrySetFont(FontFamily fontFamily)
Parameters
System.Windows.Media.FontFamily fontFamily

The font family.

Returns
System.Boolean

True if succeeded.

TrySetFont(FontFamily, FontStyle, FontWeight)

Tries to set the current font.

Declaration
public bool TrySetFont(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight)
Parameters
System.Windows.Media.FontFamily fontFamily

The font family.

System.Windows.FontStyle fontStyle

The font style.

System.Windows.FontWeight fontWeight

The font weight.

Returns
System.Boolean

True if succeeded.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.