C# Class 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.
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
CanonicalInstance AssembledStyles
GetDerivedStyle AssembledStyles
GetDerivedStyle AssembledStyles
GetDerivedStyle AssembledStyles
GetInheritedOnlyStyle AssembledStyles

Public Methods

Method Description
AssembledStylesCache ( IStylesheet stylesheet ) : System

Private Methods

Method Description
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

Method Details

AssembledStylesCache() public method

public AssembledStylesCache ( IStylesheet stylesheet ) : System
stylesheet IStylesheet
return System