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

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnEnter ( EventArgs e ) : void

Private Methods

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

public FinishInit ( ) : void
Résultat void

OnAddToLexicon() public méthode

public OnAddToLexicon ( object argument ) : bool
argument object
Résultat bool

OnDisplayAddToLexicon() public méthode

public OnDisplayAddToLexicon ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplayLexiconLookup() public méthode

public OnDisplayLexiconLookup ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnEnter() protected méthode

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLexiconLookup() public méthode

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

StTextSlice() public méthode

public StTextSlice ( ICmObject obj, int flid, int ws ) : System
obj ICmObject
flid int
ws int
Résultat System