C# Class 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.
Inheritance: StringMeasureEnv
Datei anzeigen Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_icolCurr int
m_icolToWatch int
m_nColSpanCurr int

Public Methods

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

Protected Methods

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

Private Methods

Method Description
AddResultString ( string s, int ws ) : void
GetFontFromWs ( int ws ) : Font
SetFontToCurrentWs ( ) : void

Method Details

AddResultString() protected method

protected AddResultString ( string s ) : void
s string
return void

AddStringWidth() protected method

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

AddTsString() public method

public AddTsString ( ITsString tss ) : void
tss ITsString
return void

CloseParagraph() public method

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

CloseTableCell() public method

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

CloseTheObject() protected method

protected CloseTheObject ( ) : void
return void

MaxStringWidthForColumnEnv() public method

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

OpenParagraph() public method

public OpenParagraph ( ) : void
return void

OpenTableCell() public method

public OpenTableCell ( int nRowSpan, int nColSpan ) : void
nRowSpan int
nColSpan int
return void

OpenTableRow() public method

public OpenTableRow ( ) : void
return void

UpdateMaxStringWidth() protected method

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

Property Details

m_icolCurr protected_oe property

Index of the current column.
protected int m_icolCurr
return int

m_icolToWatch protected_oe property

Index of the column being examined.
protected int m_icolToWatch
return int

m_nColSpanCurr protected_oe property

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