C# 클래스 SIL.FieldWorks.Common.RootSites.StringMeasureEnv

This subclass is used to estimate the total width (and max height) of all text that the display shows. Currently it only supports a rough approximation by picking one font to use throughout. Could be enhanced to consider changes in text properties. Could be much more easily made to do the right thing if we had a valid base VwEnv.
상속: CollectorEnv
파일 보기 프로젝트 열기: sillsdev/FieldWorks

보호된 프로퍼티들

프로퍼티 타입 설명
m_font System.Drawing.Font
m_width int

공개 메소드들

메소드 설명
StringMeasureEnv ( IVwEnv baseEnv, ISilDataAccess sda, int hvoRoot, System graphics, System font ) : System

Initializes a new instance of the T:StringMeasureEnv class.

보호된 메소드들

메소드 설명
AddResultString ( string s ) : void

Accumulate a string into our result, by adding its width

AddStringWidth ( string s ) : void

update total pixel width for display

메소드 상세

AddResultString() 보호된 메소드

Accumulate a string into our result, by adding its width
protected AddResultString ( string s ) : void
s string The s.
리턴 void

AddStringWidth() 보호된 메소드

update total pixel width for display
protected AddStringWidth ( string s ) : void
s string
리턴 void

StringMeasureEnv() 공개 메소드

Initializes a new instance of the T:StringMeasureEnv class.
public StringMeasureEnv ( IVwEnv baseEnv, ISilDataAccess sda, int hvoRoot, System graphics, System font ) : System
baseEnv IVwEnv The base env.
sda ISilDataAccess Date access to get prop values etc.
hvoRoot int The root object to display, if m_baseEnv is null. /// If baseEnv is not null, hvoRoot is ignored.
graphics System To use to measure string
font System To use to measure strings
리턴 System

프로퍼티 상세

m_font 보호되어 있는 프로퍼티

protected Font,System.Drawing m_font
리턴 System.Drawing.Font

m_width 보호되어 있는 프로퍼티

total pixel width (and max height) of all text in the display
protected int m_width
리턴 int