C# Класс SIL.FieldWorks.FwCoreDlgs.HelperMenu

Context menu to help build text expressions. Subclassed to provide regex and morpheme break building help
Наследование: System.Windows.Forms.ContextMenu, IFWDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_helpTopicProvider IHelpTopicProvider
m_textbox SIL.FieldWorks.Common.Widgets.FwTextBox

Открытые методы

Метод Описание
CheckDisposed ( ) : void

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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

GroupText ( string leftText, string rightText ) : void

Attempts to group text. Defaults to not requiring any selected text

GroupText ( string leftText, string rightText, bool requireSel ) : void

Attempts to group text.

HelperMenu ( FwTextBox textbox, IHelpTopicProvider helpTopicProvider ) : System

Constructor for Helper Context Menu.

InsertText ( string text ) : void

Insert text. Assumes that if text is selected it is meant to be replaced.

InsertText ( string text, bool replaceSelection ) : void

Insert text. Assumes that if selected text is not replaced, the new text should be inserted at the left of the selection.

InsertText ( string text, bool replaceSelection, bool insertAtRight ) : void

Insert text.

Описание методов

CheckDisposed() публичный Метод

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GroupText() защищенный Метод

Attempts to group text. Defaults to not requiring any selected text
protected GroupText ( string leftText, string rightText ) : void
leftText string Text to insert before the highlighted region
rightText string Text to insert after the highlighted region
Результат void

GroupText() защищенный Метод

Attempts to group text.
protected GroupText ( string leftText, string rightText, bool requireSel ) : void
leftText string Text to insert before the highlighted region
rightText string Text to insert after the highlighted region
requireSel bool Determines if a selection is required or not. If a selection is required but none /// is present, a warning message will be shown and the text will not be altered.
Результат void

HelperMenu() защищенный Метод

Constructor for Helper Context Menu.
protected HelperMenu ( FwTextBox textbox, IHelpTopicProvider helpTopicProvider ) : System
textbox SIL.FieldWorks.Common.Widgets.FwTextBox the textbox to insert regex characters into
helpTopicProvider IHelpTopicProvider usually IHelpTopicProvider.App
Результат System

InsertText() защищенный Метод

Insert text. Assumes that if text is selected it is meant to be replaced.
protected InsertText ( string text ) : void
text string Text to insert
Результат void

InsertText() защищенный Метод

Insert text. Assumes that if selected text is not replaced, the new text should be inserted at the left of the selection.
protected InsertText ( string text, bool replaceSelection ) : void
text string Text to insert
replaceSelection bool Determines if selected text should be replaced or not
Результат void

InsertText() защищенный Метод

Insert text.
protected InsertText ( string text, bool replaceSelection, bool insertAtRight ) : void
text string Text to insert
replaceSelection bool Determines if selected text should be replaced or not
insertAtRight bool If true and replaceSelection is false, the inserted text will be inserted at the right /// boundary of the selection instead of the left boundary.
Результат void

Описание свойств

m_helpTopicProvider защищенное свойство

For providing help
protected IHelpTopicProvider m_helpTopicProvider
Результат IHelpTopicProvider

m_textbox защищенное свойство

The textbox to insert text into
protected FwTextBox,SIL.FieldWorks.Common.Widgets m_textbox
Результат SIL.FieldWorks.Common.Widgets.FwTextBox