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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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