C# 클래스 SIL.FieldWorks.Common.Widgets.FwTextBoxColumn

A column in a DataGridView that consists of FwTextBoxCells.
상속: System.Windows.Forms.DataGridViewColumn
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_cache SIL.FieldWorks.FDO.FdoCache
m_fontCache Font>.Dictionary
m_textBoxControl SIL.FieldWorks.Common.Widgets.FwTextBoxControl
m_ws int

Private Properties

프로퍼티 타입 설명
FwTextBoxColumn System
GetValuesFont System.Drawing.Font
GetWritingSystem IWritingSystem
GetWritingSystemHandle int
GetWritingSystemHandleWithFallback int
OnColumnWidthChanged void
OnSortCompare void
SetZoomFactor void

공개 메소드들

메소드 설명
FwTextBoxColumn ( ) : System

Initializes a new instance of the FwTextBoxColumn class.

Used by Designer

FwTextBoxColumn ( SIL.FieldWorks.FDO.FdoCache cache, bool rowsAreMultiLing ) : System

Initializes a new instance of the FwTextBoxColumn class.

GetDefaultNewRowValue ( int rowIndex ) : ITsString

Gets the default value for a cell in the row for new records.

InitializeTextBoxControl ( FwTextBox fwTxtBox, ITsString tss, int rowIndex ) : void

Initializes the text box control.

SetCellStyleAlignment ( int ws, System.Windows.Forms.DataGridViewCellStyle style ) : void

Modifies the alignment of the specified cell style based on the specified writing system's RTL value.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

HandleCellFormatting ( object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e ) : void

Make sure the cell get's its font from it's ITsString's ITextProps when m_useTextPropsFontForCell is true.

OnDataGridViewChanged ( ) : void

Called when the band is associated with a different .

OnRowHeightChanged ( object sender, System.Windows.Forms.DataGridViewRowEventArgs e ) : void

Called when a row in the grid changes heights. Make sure to adjust the FwTextBoxControls, if it's showing in the resized row in this column.

비공개 메소드들

메소드 설명
FwTextBoxColumn ( SIL.FieldWorks.FDO.FdoCache cache ) : System
GetValuesFont ( ITsString tss, int ws ) : Font

Get the font for the specified TsString and writing system.

GetWritingSystem ( int rowIndex ) : IWritingSystem

Gets the writing system.

GetWritingSystemHandle ( int rowIndex ) : int

Gets the writing system.

GetWritingSystemHandleWithFallback ( int rowIndex ) : int

Gets the writing system handle for the column. If that is 0 (i.e., not specified), attempt to get the writing system from the specified DataGridView row.

OnColumnWidthChanged ( object sender, System.Windows.Forms.DataGridViewColumnEventArgs e ) : void

Called when the column width changed.

OnSortCompare ( object sender, System.Windows.Forms.DataGridViewSortCompareEventArgs e ) : void

Occurs when the DataGridView compares two cell values to perform a sort operation.

SetZoomFactor ( float factor ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool set to true if called from the Dispose() method, /// set to false if called by GC. If this parameter is false we shouldn't /// access any managed objects since these might already have been destroyed.
리턴 void

FwTextBoxColumn() 공개 메소드

Initializes a new instance of the FwTextBoxColumn class.
Used by Designer
public FwTextBoxColumn ( ) : System
리턴 System

FwTextBoxColumn() 공개 메소드

Initializes a new instance of the FwTextBoxColumn class.
public FwTextBoxColumn ( SIL.FieldWorks.FDO.FdoCache cache, bool rowsAreMultiLing ) : System
cache SIL.FieldWorks.FDO.FdoCache
rowsAreMultiLing bool
리턴 System

GetDefaultNewRowValue() 공개 메소드

Gets the default value for a cell in the row for new records.
public GetDefaultNewRowValue ( int rowIndex ) : ITsString
rowIndex int
리턴 ITsString

HandleCellFormatting() 보호된 메소드

Make sure the cell get's its font from it's ITsString's ITextProps when m_useTextPropsFontForCell is true.
protected HandleCellFormatting ( object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewCellFormattingEventArgs
리턴 void

InitializeTextBoxControl() 공개 메소드

Initializes the text box control.
public InitializeTextBoxControl ( FwTextBox fwTxtBox, ITsString tss, int rowIndex ) : void
fwTxtBox FwTextBox The FwTextBox control to initialize. When this is null, then /// the column's internal FwTextBox (i.e. m_textBoxControl) is initialized.
tss ITsString The TsString fwTxtBox is initialized to.
rowIndex int Row whose writing system is used (and whose default value /// is used when necessary).
리턴 void

OnDataGridViewChanged() 보호된 메소드

Called when the band is associated with a different .
protected OnDataGridViewChanged ( ) : void
리턴 void

OnRowHeightChanged() 보호된 메소드

Called when a row in the grid changes heights. Make sure to adjust the FwTextBoxControls, if it's showing in the resized row in this column.
protected OnRowHeightChanged ( object sender, System.Windows.Forms.DataGridViewRowEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewRowEventArgs
리턴 void

SetCellStyleAlignment() 공개 메소드

Modifies the alignment of the specified cell style based on the specified writing system's RTL value.
public SetCellStyleAlignment ( int ws, System.Windows.Forms.DataGridViewCellStyle style ) : void
ws int
style System.Windows.Forms.DataGridViewCellStyle
리턴 void

프로퍼티 상세

m_cache 보호되어 있는 프로퍼티

protected FdoCache,SIL.FieldWorks.FDO m_cache
리턴 SIL.FieldWorks.FDO.FdoCache

m_fontCache 보호되어 있는 프로퍼티

protected Dictionary m_fontCache
리턴 Font>.Dictionary

m_textBoxControl 보호되어 있는 프로퍼티

protected FwTextBoxControl,SIL.FieldWorks.Common.Widgets m_textBoxControl
리턴 SIL.FieldWorks.Common.Widgets.FwTextBoxControl

m_ws 보호되어 있는 프로퍼티

protected int m_ws
리턴 int