C# Класс SIL.FieldWorks.SharpViews.AssembledStylesCache

This is a class that retrieves assembled styles, either by matching an existing one, or by the path used to create it. We keep track of the path using two dictionaries, one for object properties and one for integer ones. The object one could serve for everything, but a lot of integers would get boxed, and we'd have to do all kinds of trickery to avoid the nuisance that two independent boxes of the same integer are not equal. We could achieve the same functionality without the Triple-keyed dictionaries at all, but much less efficiently: we'd have to create the derived AS every time before finding out that it already exists.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CanonicalInstance AssembledStyles
GetDerivedStyle AssembledStyles
GetDerivedStyle AssembledStyles
GetDerivedStyle AssembledStyles
GetInheritedOnlyStyle AssembledStyles

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

Метод Описание
AssembledStylesCache ( IStylesheet stylesheet ) : System

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

Метод Описание
CanonicalInstance ( AssembledStyles astyles ) : AssembledStyles
GetDerivedStyle ( AssembledStyles basedOn, AssembledStyles setter ) : AssembledStyles
GetDerivedStyle ( AssembledStyles basedOn, int ttp, int val, IntDeriver deriver ) : AssembledStyles
GetDerivedStyle ( AssembledStyles basedOn, int ttp, object val, ObjDeriver deriver ) : AssembledStyles
GetInheritedOnlyStyle ( AssembledStyles basedOn ) : AssembledStyles

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

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

public AssembledStylesCache ( IStylesheet stylesheet ) : System
stylesheet IStylesheet
Результат System