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.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
|