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
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
ApplyStyle void
CanApplyStyle bool
CanDelete bool
CanInsertText bool
Delete void
InsertText void
InsertText void

Public Methods

Method 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

Method 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 method

public GetStyleNameAt ( InsertionPoint ip ) : string
ip SIL.FieldWorks.SharpViews.Selections.InsertionPoint
return string

LiteralStringParaHookup() public method

public LiteralStringParaHookup ( object target, IStringParaNotification para ) : System
target object
para IStringParaNotification
return System

SelectAtEnd() public method

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

SelectAtStart() public method

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