C# Класс Orchestra.Markup.FontImage

Markup extension that can show a font as image.
Original idea comes from http://www.codeproject.com/Tips/634540/Using-Font-Icons
Наследование: Catel.Windows.Markup.UpdatableMarkupExtension
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CreateGlyph System.Windows.Media.ImageSource
FontImage System
ProvideDynamicValue object

Открытые методы

Метод Описание
FontImage ( string itemName ) : System

Initializes a new instance of the FontImage class.

GetImageSource ( ) : System.Windows.Media.ImageSource
GetRegisteredFont ( string name ) : System.Windows.Media.FontFamily
GetRegisteredFonts ( ) : IEnumerable
RegisterFont ( string name, System.Windows.Media.FontFamily fontFamily ) : void

Защищенные методы

Метод Описание
ProvideDynamicValue ( IServiceProvider serviceProvider ) : object

Приватные методы

Метод Описание
CreateGlyph ( string text, System.Windows.Media.FontFamily fontFamily, System.Windows.FontStyle fontStyle, System.Windows.FontWeight fontWeight, System.Windows.FontStretch fontStretch, System.Windows.Media.Brush foreBrush ) : System.Windows.Media.ImageSource
FontImage ( ) : System
ProvideDynamicValue ( ) : object

Описание методов

FontImage() публичный Метод

Initializes a new instance of the FontImage class.
public FontImage ( string itemName ) : System
itemName string Name of the resource.
Результат System

GetImageSource() публичный Метод

public GetImageSource ( ) : System.Windows.Media.ImageSource
Результат System.Windows.Media.ImageSource

GetRegisteredFont() публичный статический Метод

public static GetRegisteredFont ( string name ) : System.Windows.Media.FontFamily
name string
Результат System.Windows.Media.FontFamily

GetRegisteredFonts() публичный статический Метод

public static GetRegisteredFonts ( ) : IEnumerable
Результат IEnumerable

ProvideDynamicValue() защищенный Метод

protected ProvideDynamicValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
Результат object

RegisterFont() публичный статический Метод

public static RegisterFont ( string name, System.Windows.Media.FontFamily fontFamily ) : void
name string
fontFamily System.Windows.Media.FontFamily
Результат void