C# Class SIL.FieldWorks.SharpViews.Builders.SelectionBuilder

SelectionBuilder supports a fluent interface for making selections.
Show file Open project: sillsdev/FieldWorks

Private Properties

Property Type Description
SelectionBuilder System

Public Methods

Method Description
In ( Hookup startHookup ) : SelectionBuilder

An entry point for making a selection, setting the current position to the specified hookup.

In ( RootBox root ) : SelectionBuilder
Install ( ) : Selection

This is a shortcut which both gets the selection and installs it.

Offset ( int ich ) : SelectionBuilder
this ( int index ) : SelectionBuilder

Refine the current target to the index'th item of the old current target (or null). Returns 'this' to let the fluent chain continue.

Private Methods

Method Description
SelectionBuilder ( ) : System

Method Details

In() public static method

An entry point for making a selection, setting the current position to the specified hookup.
public static In ( Hookup startHookup ) : SelectionBuilder
startHookup SIL.FieldWorks.SharpViews.Hookups.Hookup
return SelectionBuilder

In() public static method

public static In ( RootBox root ) : SelectionBuilder
root RootBox
return SelectionBuilder

Install() public method

This is a shortcut which both gets the selection and installs it.
public Install ( ) : Selection
return SIL.FieldWorks.SharpViews.Selections.Selection

Offset() public method

public Offset ( int ich ) : SelectionBuilder
ich int
return SelectionBuilder

this() public method

Refine the current target to the index'th item of the old current target (or null). Returns 'this' to let the fluent chain continue.
public this ( int index ) : SelectionBuilder
index int
return SelectionBuilder