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

Private Properties

Property Type Description
ChildContaining Hookup
ChildContaining Hookup
IndexOfChild int
InsertChildHookup void

Public Methods

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

Protected Methods

Method Description
Dispose ( bool beforeDestructor ) : void

Dispose any disposable children and clear the collection.

GroupHookup ( object target, GroupBox containingBox ) : System

Private Methods

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

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

GroupHookup() protected method

protected GroupHookup ( object target, GroupBox containingBox ) : System
target object
containingBox GroupBox
return System

SelectAtEnd() public method

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
return SIL.FieldWorks.SharpViews.Selections.InsertionPoint

SelectAtStart() public method

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