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 RadTextBlock

Provides methods and properties for using RadTextBlock.

Inheritance
System.Object
RadTextBlock
Namespace: Telerik.Windows.Controls.Spreadsheet.Controls
Assembly: Telerik.Windows.Controls.Spreadsheet.dll

Syntax

public class RadTextBlock : ContentControl

Constructors

RadTextBlock()

Initializes a new instance of the RadTextBlock class.

Declaration
public RadTextBlock()

Properties

ActualHeight

Gets the actual height.

Declaration
public double ActualHeight { get; }
Property Value
System.Double

The actual height.

ActualWidth

Gets the actual width.

Declaration
public double ActualWidth { get; }
Property Value
System.Double

The actual width.

BaselineOffset

Gets the baseline offset.

Declaration
public double BaselineOffset { get; }
Property Value
System.Double

The baseline offset.

Clip

Gets or sets the clip.

Declaration
public Rect Clip { get; set; }
Property Value
System.Windows.Rect

The value of the clip.

FontFamily

Gets or sets the font family.

Declaration
public FontFamily FontFamily { get; set; }
Property Value
System.Windows.Media.FontFamily

The font family.

FontSize

Gets or sets the size of the font.

Declaration
public double FontSize { get; set; }
Property Value
System.Double

The size of the font.

FontStyle

Gets or sets the font style.

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

The font style.

FontWeight

Gets or sets the font weight.

Declaration
public FontWeight FontWeight { get; set; }
Property Value
System.Windows.FontWeight

The font weight.

Foreground

Gets or sets the foreground.

Declaration
public Color Foreground { get; set; }
Property Value
System.Windows.Media.Color

The foreground.

Inlines

Gets the inlines of RadTextBlock.

Declaration
public RadInlineCollection Inlines { get; }
Property Value
RadInlineCollection

The collection of inlines.

Left

Gets or sets the left of RadTextBlock.

Declaration
public double Left { get; set; }
Property Value
System.Double

The left value.

MaxWidth

Gets or sets the max width.

Declaration
public double MaxWidth { get; set; }
Property Value
System.Double

The maximum width of RadTextBlock.

Padding

Gets or sets the padding.

Declaration
public Thickness Padding { get; set; }
Property Value
System.Windows.Thickness

The padding.

Text

Gets or sets the text of RadTextBlock.

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

The value of the text.

TextAlignment

Gets or sets the text alignment.

Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
System.Windows.TextAlignment

The text alignment.

TextDecorations

Gets or sets the text decorations.

Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
System.Windows.TextDecorationCollection

The text decorations.

TextWrapping

Gets or sets the text wrapping.

Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
System.Windows.TextWrapping

The text wrapping.

Top

Gets or sets the top value of RadTextBlock.

Declaration
public double Top { get; set; }
Property Value
System.Double

The top value.

Visibility

Gets or sets the visibility.

Declaration
public Visibility Visibility { get; set; }
Property Value
System.Windows.Visibility

The visibility.

Width

Gets or sets the width.

Declaration
public double Width { get; set; }
Property Value
System.Double

The width.

Methods

MeasureOverride(Size)

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size availableSize

The available size that this object can give to child objects. Infinity (System.Double.PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.

Returns
System.Windows.Size

The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML 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.