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.
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

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