C# Class SIL.FieldWorks.Common.Framework.DetailControls.StTextSlice

An StTextSlice implements the sttext editor type for atomic attributes whose value is an StText. The resulting view allows the editing of the text, including creating and destroying (and splitting and merging) of the paragraphs using the usual keyboard actions.
Inheritance: ViewPropertySlice
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
FinishInit ( ) : void
OnAddToLexicon ( object argument ) : bool
OnDisplayAddToLexicon ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnDisplayLexiconLookup ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnLexiconLookup ( object argument ) : bool

Look up the selected wordform in the dictionary and display its lexical entry.

StTextSlice ( ICmObject obj, int flid, int ws ) : System

Protected Methods

Method Description
OnEnter ( EventArgs e ) : void

Private Methods

Method Description
GetWordLimitsOfSelection ( int &ichMin, int &ichLim, int &hvo, int &tag, int &ws, ITsString &tss ) : void
GetWsFromString ( ITsString tss, int ichMin, int ichLim ) : int
SelectAt ( int ich ) : void

Select at the specified position in the first paragraph.

SelectionBeginningGrowToWord ( IVwSelection sel ) : IVwSelection

Return a word selection based on the beginning of the current selection. Here the "beginning" of the selection is the offset corresponding to word order, not the selection anchor.

Method Details

FinishInit() public method

public FinishInit ( ) : void
return void

OnAddToLexicon() public method

public OnAddToLexicon ( object argument ) : bool
argument object
return bool

OnDisplayAddToLexicon() public method

public OnDisplayAddToLexicon ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
return bool

OnDisplayLexiconLookup() public method

public OnDisplayLexiconLookup ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
return bool

OnEnter() protected method

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnLexiconLookup() public method

Look up the selected wordform in the dictionary and display its lexical entry.
public OnLexiconLookup ( object argument ) : bool
argument object
return bool

StTextSlice() public method

public StTextSlice ( ICmObject obj, int flid, int ws ) : System
obj ICmObject
flid int
ws int
return System