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 jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    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 RadGlyph

Provides a runtime and design time for font glyphs.

Inheritance
System.Object
RadGlyph
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

public class RadGlyph : FrameworkElement, IThemable

Constructors

RadGlyph()

Declaration
public RadGlyph()

Fields

BackgroundProperty

Identifies the Background dependency property.

Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
System.Windows.DependencyProperty

FontProperty

Identifies the Font dependency property.

Declaration
public static readonly DependencyProperty FontProperty
Field Value
System.Windows.DependencyProperty

FontSizeProperty

Identifies the FontSize dependency property.

Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
System.Windows.DependencyProperty

ForegroundProperty

Identifies the Foreground dependency property.

Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
System.Windows.DependencyProperty

GlyphProperty

Identifies the Glyph dependency property.

Declaration
public static readonly DependencyProperty GlyphProperty
Field Value
System.Windows.DependencyProperty

Properties

Background

Gets or sets the background of the element.

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

Font

Gets or sets the name of the font to be used.

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

FontSize

Gets or sets the font size of the element.

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

Foreground

Gets or sets the foreground of the element which would color the rendered glyph.

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

Glyph

Gets or sets the glyph string value.

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

TelerikFluentIconsFontFamily

Identifies the TelerikFontFamily property.

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

TelerikFontFamily

Identifies the TelerikFontFamily property.

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

Methods

ArrangeOverride(Size)

Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size finalSize

Returns
System.Windows.Size

GetGeometry(String, String)

Gets a System.Windows.Media.Geometry from the chosen glyph.

Declaration
public static Geometry GetGeometry(string glyph, string fontName)
Parameters
System.String glyph

The glyph string.

System.String fontName

The registered font family name to be used.

Returns
System.Windows.Media.Geometry

GetImageSource(String, Double, Brush, String)

Gets an System.Windows.Media.ImageSource for the chosen glyph.

Declaration
public static ImageSource GetImageSource(string glyph, double fontSize, Brush foreground, string fontName)
Parameters
System.String glyph

The glyph string.

System.Double fontSize

The font size.

System.Windows.Media.Brush foreground

The color to render the glyph with.

System.String fontName

The registered font family name to be used.

Returns
System.Windows.Media.ImageSource

GetRegisteredFonts()

Gets a list of all the registered fonts.

Declaration
public static IEnumerable<string> GetRegisteredFonts()
Returns
System.Collections.Generic.IEnumerable<System.String>

GetTypeface(String)

Gets the Telerik.Windows.Controls.RadGlyph.typeface of a registered font.

Declaration
public static Typeface GetTypeface(string fontName)
Parameters
System.String fontName

The name of the font.

Returns
System.Windows.Media.Typeface

LoadLegacyFont()

Registers an old version of font family to be used by all instances of RadGlyph.

Declaration
public static void LoadLegacyFont()

MeasureOverride(Size)

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

Returns
System.Windows.Size

OnCreateAutomationPeer()

Creates a RadGlyphAutomationPeer.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

OnInitialized(EventArgs)

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

OnRender(DrawingContext)

Renders the formatted glyph.

Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
System.Windows.Media.DrawingContext drawingContext

RegisterFont(String)

Registers a font family to be used by all instances of RadGlyph and RadGlyphExtension.

Declaration
public static void RegisterFont(string fontName)
Parameters
System.String fontName

RegisterFont(Uri, String)

Registers a font family to be used by all instances of RadGlyph and RadGlyphExtension.

Declaration
public static void RegisterFont(Uri fontUri, string fontName)
Parameters
System.Uri fontUri

System.String fontName

RegisterFont(FontFamily)

Registers a font family to be used by all instances of RadGlyph and RadGlyphExtension.

Declaration
public static void RegisterFont(FontFamily fontFamily)
Parameters
System.Windows.Media.FontFamily fontFamily

RegisterFont(FontFamily, String)

Registers a font family to be used by all instances of RadGlyph and RadGlyphExtension.

Declaration
public static void RegisterFont(FontFamily fontFamily, string fontName)
Parameters
System.Windows.Media.FontFamily fontFamily

System.String fontName

ResetTheme()

Resets the theme in StyleManager scenario.

Declaration
public void ResetTheme()

SetDefaultStyleKey()

Sets the default style key for StyleManager based on the current theme.

Declaration
protected virtual void SetDefaultStyleKey()

ToString()

Declaration
public override string ToString()
Returns
System.String

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.