Class RadGlyph
Provides a runtime and design time for font glyphs.
Inheritance
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.
|
FontProperty
Identifies the Font dependency property.
Declaration
public static readonly DependencyProperty FontProperty
Field Value
System.
|
FontSizeProperty
Identifies the Font
Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
System.
|
ForegroundProperty
Identifies the Foreground dependency property.
Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
System.
|
GlyphProperty
Identifies the Glyph dependency property.
Declaration
public static readonly DependencyProperty GlyphProperty
Field Value
System.
|
Properties
Background
Gets or sets the background of the element.
Declaration
public Brush Background { get; set; }
Property Value
System.
|
Font
Gets or sets the name of the font to be used.
Declaration
public string Font { get; set; }
Property Value
System.
|
FontSize
Gets or sets the font size of the element.
Declaration
public double FontSize { get; set; }
Property Value
System.
|
Foreground
Gets or sets the foreground of the element which would color the rendered glyph.
Declaration
public Brush Foreground { get; set; }
Property Value
System.
|
Glyph
Gets or sets the glyph string value.
Declaration
public string Glyph { get; set; }
Property Value
System.
|
TelerikFluentIconsFontFamily
Identifies the TelerikFontFamily property.
Declaration
public static FontFamily TelerikFluentIconsFontFamily { get; }
Property Value
System.
|
TelerikFontFamily
Identifies the TelerikFontFamily property.
Declaration
public static FontFamily TelerikFontFamily { get; }
Property Value
System.
|
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.
|
Returns
System.
|
GetGeometry(String, String)
Gets a System.
Declaration
public static Geometry GetGeometry(string glyph, string fontName)
Parameters
System. The glyph string. |
System. The registered font family name to be used. |
Returns
System.
|
GetImageSource(String, Double, Brush, String)
Gets an System.
Declaration
public static ImageSource GetImageSource(string glyph, double fontSize, Brush foreground, string fontName)
Parameters
System. The glyph string. |
System. The font size. |
System. The color to render the glyph with. |
System. The registered font family name to be used. |
Returns
System.
|
GetRegisteredFonts()
Gets a list of all the registered fonts.
Declaration
public static IEnumerable<string> GetRegisteredFonts()
Returns
System.
|
GetTypeface(String)
Gets the Telerik.
Declaration
public static Typeface GetTypeface(string fontName)
Parameters
System. The name of the font. |
Returns
System.
|
LoadLegacyFont()
Registers an old version of font family to be used by all instances of Rad
Declaration
public static void LoadLegacyFont()
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.
|
Returns
System.
|
OnCreateAutomationPeer()
Creates a RadGlyphAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.
|
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.
|
OnRender(DrawingContext)
Renders the formatted glyph.
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
System.
|
RegisterFont(String)
Registers a font family to be used by all instances of Rad
Declaration
public static void RegisterFont(string fontName)
Parameters
System.
|
RegisterFont(Uri, String)
Registers a font family to be used by all instances of Rad
Declaration
public static void RegisterFont(Uri fontUri, string fontName)
Parameters
System.
|
System.
|
RegisterFont(FontFamily)
Registers a font family to be used by all instances of Rad
Declaration
public static void RegisterFont(FontFamily fontFamily)
Parameters
System.
|
RegisterFont(FontFamily, String)
Registers a font family to be used by all instances of Rad
Declaration
public static void RegisterFont(FontFamily fontFamily, string fontName)
Parameters
System.
|
System.
|
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.
|