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

A GroupHookup subclass is used for any hookup that can be a parent of other hookups. For example, a SequenceHookup has a child hookup for each item in the sequence; an ItemHookup has children which are the hookups for the various properties displayed. It keeps track of its children in order. It also knows a containing box in which its parts are placed.
Inheritance: Hookup
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description
ChildContaining Hookup
ChildContaining Hookup
IndexOfChild int
InsertChildHookup void

Méthodes publiques

Méthode Description
SelectAtEnd ( ) : InsertionPoint

Make an insertion point at the end of the data covered by the hookup. GroupHookup delegates to its last child. Enhance JohnT: possibly try the second-last child, if the last one cannot, and so on?

SelectAtStart ( ) : InsertionPoint

Make an insertion point at the start of the data covered by the hookup. GroupHookup delegates to its first child.

Méthodes protégées

Méthode Description
Dispose ( bool beforeDestructor ) : void

Dispose any disposable children and clear the collection.

GroupHookup ( object target, GroupBox containingBox ) : System

Private Methods

Méthode Description
ChildContaining ( Hookup child ) : Hookup

Return the one of your direct children which is or is a parent of the given child hookup (or null if no such exists).

ChildContaining ( InsertionPoint ip ) : Hookup

Return the one of your direct children which contains the given IP (or null if none does).

IndexOfChild ( InsertionPoint ip ) : int

Return the index of the one of your child hookups that contains the given selection, or -1 if not found.

InsertChildHookup ( IHookup child, int insertAt ) : void

Method Details

Dispose() protected méthode

Dispose any disposable children and clear the collection.
protected Dispose ( bool beforeDestructor ) : void
beforeDestructor bool
Résultat void

GroupHookup() protected méthode

protected GroupHookup ( object target, GroupBox containingBox ) : System
target object
containingBox GroupBox
Résultat System

SelectAtEnd() public méthode

Make an insertion point at the end of the data covered by the hookup. GroupHookup delegates to its last child. Enhance JohnT: possibly try the second-last child, if the last one cannot, and so on?
public SelectAtEnd ( ) : InsertionPoint
Résultat SIL.FieldWorks.SharpViews.Selections.InsertionPoint

SelectAtStart() public méthode

Make an insertion point at the start of the data covered by the hookup. GroupHookup delegates to its first child.
public SelectAtStart ( ) : InsertionPoint
Résultat SIL.FieldWorks.SharpViews.Selections.InsertionPoint