C# Class SIL.FieldWorks.LexText.Controls.InsertionControl

This class represents a rule insertion control. A rule insertion control consists of a set of hotlinks that are used to insert various rule items. Rule formula controls provide information about which type of items it is interested in inserting and in what context the hotlinks should be displayed. It provides an Insert event that indicates when a user has attempted to insert an item.
Inheritance: System.Windows.Forms.UserControl, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
AddMultiOption ( object option, bool>.Func shouldDisplay, Func displaySuboptions ) : void

Adds an index option. A predicate can be provided to determine what indices to display.

AddOption ( object option, bool>.Func shouldDisplay ) : void

Adds an insertion option. A predicate can be provided to determine in what contexts this insertion option can be displayed.

CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

InsertionControl ( ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnSizeChanged ( EventArgs e ) : void

Private Methods

Méthode Description
InitializeComponent ( ) : void
UpdateOptionsDisplay ( ) : void
link_LinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void

Method Details

AddMultiOption() public méthode

Adds an index option. A predicate can be provided to determine what indices to display.
public AddMultiOption ( object option, bool>.Func shouldDisplay, Func displaySuboptions ) : void
option object
shouldDisplay bool>.Func The should display predicate.
displaySuboptions Func
Résultat void

AddOption() public méthode

Adds an insertion option. A predicate can be provided to determine in what contexts this insertion option can be displayed.
public AddOption ( object option, bool>.Func shouldDisplay ) : void
option object
shouldDisplay bool>.Func The should display predicate.
Résultat void

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InsertionControl() public méthode

public InsertionControl ( ) : System
Résultat System

OnSizeChanged() protected méthode

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void