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
파일 보기 프로젝트 열기: sillsdev/FieldWorks

보호된 프로퍼티들

프로퍼티 타입 설명
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