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

Estimates the longest width (in pixels) of string contents in a specified column in a table. Currently only calculates for cells spanning one column in a views table.
상속: StringMeasureEnv
파일 보기 프로젝트 열기: sillsdev/FieldWorks

보호된 프로퍼티들

프로퍼티 타입 설명
m_icolCurr int
m_icolToWatch int
m_nColSpanCurr int

공개 메소드들

메소드 설명
AddTsString ( ITsString tss ) : void

CloseParagraph ( ) : void

update max string width info, if we haven't already done so.

CloseTableCell ( ) : void

update max string width info, if we haven't already done so.

MaxStringWidthForColumnEnv ( IVwStylesheet stylesheet, ISilDataAccess sda, int hvoRoot, System graphics, int icolumn ) : System

OpenParagraph ( ) : void

OpenTableCell ( int nRowSpan, int nColSpan ) : void

OpenTableRow ( ) : void

보호된 메소드들

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

AddStringWidth ( string s ) : void

only update string width if we're in the column we're interested in.

CloseTheObject ( ) : void

UpdateMaxStringWidth ( ) : void

Updates the column width counter for auto-resizing Views columns.

비공개 메소드들

메소드 설명
AddResultString ( string s, int ws ) : void
GetFontFromWs ( int ws ) : Font
SetFontToCurrentWs ( ) : void

메소드 상세

AddResultString() 보호된 메소드

protected AddResultString ( string s ) : void
s string
리턴 void

AddStringWidth() 보호된 메소드

only update string width if we're in the column we're interested in.
protected AddStringWidth ( string s ) : void
s string
리턴 void

AddTsString() 공개 메소드

public AddTsString ( ITsString tss ) : void
tss ITsString
리턴 void

CloseParagraph() 공개 메소드

update max string width info, if we haven't already done so.
public CloseParagraph ( ) : void
리턴 void

CloseTableCell() 공개 메소드

update max string width info, if we haven't already done so.
public CloseTableCell ( ) : void
리턴 void

CloseTheObject() 보호된 메소드

protected CloseTheObject ( ) : void
리턴 void

MaxStringWidthForColumnEnv() 공개 메소드

public MaxStringWidthForColumnEnv ( IVwStylesheet stylesheet, ISilDataAccess sda, int hvoRoot, System graphics, int icolumn ) : System
stylesheet IVwStylesheet
sda ISilDataAccess
hvoRoot int
graphics System
icolumn int
리턴 System

OpenParagraph() 공개 메소드

public OpenParagraph ( ) : void
리턴 void

OpenTableCell() 공개 메소드

public OpenTableCell ( int nRowSpan, int nColSpan ) : void
nRowSpan int
nColSpan int
리턴 void

OpenTableRow() 공개 메소드

public OpenTableRow ( ) : void
리턴 void

UpdateMaxStringWidth() 보호된 메소드

Updates the column width counter for auto-resizing Views columns.
protected UpdateMaxStringWidth ( ) : void
리턴 void

프로퍼티 상세

m_icolCurr 보호되어 있는 프로퍼티

Index of the current column.
protected int m_icolCurr
리턴 int

m_icolToWatch 보호되어 있는 프로퍼티

Index of the column being examined.
protected int m_icolToWatch
리턴 int

m_nColSpanCurr 보호되어 있는 프로퍼티

Number of columns spanned by the current cell.
protected int m_nColSpanCurr
리턴 int