C# Class SIL.FieldWorks.SharpViews.Hookups.LiteralStringParaHookup

This is a cut-down version of StringHookup used in selection of client runs that don't have natural hookups, such as literal strings. It never sends change notifcations, so doesn't need delegates for updates and notifications. If you find a LiteralStringParaHookup where you expected one that allows editing, like StringHookup or TssHookup, one possible cause is that you don't have a correctly named "XChanged" event being triggered when your property X changes.
Inheritance: Hookup
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description
ApplyStyle void
CanApplyStyle bool
CanDelete bool
CanInsertText bool
Delete void
InsertText void
InsertText void

Méthodes publiques

Méthode Description
GetStyleNameAt ( InsertionPoint ip ) : string
LiteralStringParaHookup ( object target, IStringParaNotification para ) : System
SelectAtEnd ( ) : InsertionPoint

This kind of hookup can really do it!

SelectAtStart ( ) : InsertionPoint

This kind of hookup can really do it!

Private Methods

Méthode Description
ApplyStyle ( InsertionPoint start, InsertionPoint end, string style ) : void
CanApplyStyle ( InsertionPoint start, InsertionPoint end, string style ) : bool
CanDelete ( InsertionPoint start, InsertionPoint end ) : bool

Return true if we can delete the specified range. A LiteralStringHookup never can, but some subclasses can.

CanInsertText ( InsertionPoint ip ) : bool

A generic hookup knows it can't, but various subclasses can.

Delete ( InsertionPoint start, InsertionPoint end ) : void

Delete the specified range (some subclasses actually can). Todo JohnT: more should be able to.

InsertText ( InsertionPoint ip, ITsString input ) : void
InsertText ( InsertionPoint ip, string input ) : void

Method Details

GetStyleNameAt() public méthode

public GetStyleNameAt ( InsertionPoint ip ) : string
ip SIL.FieldWorks.SharpViews.Selections.InsertionPoint
Résultat string

LiteralStringParaHookup() public méthode

public LiteralStringParaHookup ( object target, IStringParaNotification para ) : System
target object
para IStringParaNotification
Résultat System

SelectAtEnd() public méthode

This kind of hookup can really do it!
public SelectAtEnd ( ) : InsertionPoint
Résultat SIL.FieldWorks.SharpViews.Selections.InsertionPoint

SelectAtStart() public méthode

This kind of hookup can really do it!
public SelectAtStart ( ) : InsertionPoint
Résultat SIL.FieldWorks.SharpViews.Selections.InsertionPoint