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
Afficher le fichier Open project: sillsdev/FieldWorks

Protected Properties

Свойство Type Description
m_icolCurr int
m_icolToWatch int
m_nColSpanCurr int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
AddResultString ( string s, int ws ) : void
GetFontFromWs ( int ws ) : Font
SetFontToCurrentWs ( ) : void

Method Details

AddResultString() protected méthode

protected AddResultString ( string s ) : void
s string
Résultat void

AddStringWidth() protected méthode

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

AddTsString() public méthode

public AddTsString ( ITsString tss ) : void
tss ITsString
Résultat void

CloseParagraph() public méthode

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

CloseTableCell() public méthode

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

CloseTheObject() protected méthode

protected CloseTheObject ( ) : void
Résultat void

MaxStringWidthForColumnEnv() public méthode

public MaxStringWidthForColumnEnv ( IVwStylesheet stylesheet, ISilDataAccess sda, int hvoRoot, System graphics, int icolumn ) : System
stylesheet IVwStylesheet
sda ISilDataAccess
hvoRoot int
graphics System
icolumn int
Résultat System

OpenParagraph() public méthode

public OpenParagraph ( ) : void
Résultat void

OpenTableCell() public méthode

public OpenTableCell ( int nRowSpan, int nColSpan ) : void
nRowSpan int
nColSpan int
Résultat void

OpenTableRow() public méthode

public OpenTableRow ( ) : void
Résultat void

UpdateMaxStringWidth() protected méthode

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

Property Details

m_icolCurr protected_oe property

Index of the current column.
protected int m_icolCurr
Résultat int

m_icolToWatch protected_oe property

Index of the column being examined.
protected int m_icolToWatch
Résultat int

m_nColSpanCurr protected_oe property

Number of columns spanned by the current cell.
protected int m_nColSpanCurr
Résultat int