C# 클래스 SIL.FieldWorks.SharpViews.Selections.Selection

The base class for all selections.
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
ApplyStyle ( string style ) : void
CanApplyStyle ( string style ) : bool
CanDelete ( ) : bool

Return true if Delete() will delete something. Default is that it will not.

Contains ( InsertionPoint ip ) : bool

Answer true if the selection is contained in the other, that is, it is associated with one of the selected characters.

Delete ( ) : void

Delete the selected material, or whatever else is appropriate when the Delete key is pressed. (Insertion Point deletes the following character.) Default is to do nothing.

GetSelectionLocation ( IVwGraphics graphics, PaintTransform transform ) : Rectangle

Get the location, in the coordinates indicated by the transform, of a rectangle that contains the primary insertion point. Todo JohnT: there should be a parallel routine to get the location of the secondary rectangle.

InsertRtfString ( string input ) : bool
InsertText ( string input ) : bool
InsertTsString ( ITsString input ) : bool
Install ( ) : void

Install this selection as the current one for the root box.

MoveByKey ( KeyEventArgs args ) : Selection

Return the selection that should be produced by a KeyDown event with the specified arguments. If the argument does not specify a key-moving event or it is not possible to move (e.g., left arrow at start of document), return null.

RestoreData ( Selection dataToSave ) : ISelectionRestoreData
SelectedText ( ) : string

비공개 메소드들

메소드 설명
Draw ( IVwGraphics vg, PaintTransform ptrans ) : void

Draw the selection on the VwGraphics.

Invalidate ( ) : void

Invalidate the selection, that is, mark the rectangle it occupies as needing to be painted in the containing control.

메소드 상세

ApplyStyle() 공개 메소드

public ApplyStyle ( string style ) : void
style string
리턴 void

CanApplyStyle() 공개 메소드

public CanApplyStyle ( string style ) : bool
style string
리턴 bool

CanDelete() 공개 메소드

Return true if Delete() will delete something. Default is that it will not.
public CanDelete ( ) : bool
리턴 bool

Contains() 공개 메소드

Answer true if the selection is contained in the other, that is, it is associated with one of the selected characters.
public Contains ( InsertionPoint ip ) : bool
ip InsertionPoint
리턴 bool

Delete() 공개 메소드

Delete the selected material, or whatever else is appropriate when the Delete key is pressed. (Insertion Point deletes the following character.) Default is to do nothing.
public Delete ( ) : void
리턴 void

GetSelectionLocation() 공개 추상적인 메소드

Get the location, in the coordinates indicated by the transform, of a rectangle that contains the primary insertion point. Todo JohnT: there should be a parallel routine to get the location of the secondary rectangle.
public abstract GetSelectionLocation ( IVwGraphics graphics, PaintTransform transform ) : Rectangle
graphics IVwGraphics
transform PaintTransform
리턴 System.Drawing.Rectangle

InsertRtfString() 공개 메소드

public InsertRtfString ( string input ) : bool
input string
리턴 bool

InsertText() 공개 메소드

public InsertText ( string input ) : bool
input string
리턴 bool

InsertTsString() 공개 메소드

public InsertTsString ( ITsString input ) : bool
input ITsString
리턴 bool

Install() 공개 메소드

Install this selection as the current one for the root box.
public Install ( ) : void
리턴 void

MoveByKey() 공개 메소드

Return the selection that should be produced by a KeyDown event with the specified arguments. If the argument does not specify a key-moving event or it is not possible to move (e.g., left arrow at start of document), return null.
public MoveByKey ( KeyEventArgs args ) : Selection
args System.Windows.Forms.KeyEventArgs
리턴 Selection

RestoreData() 공개 추상적인 메소드

public abstract RestoreData ( Selection dataToSave ) : ISelectionRestoreData
dataToSave Selection
리턴 ISelectionRestoreData

SelectedText() 공개 메소드

public SelectedText ( ) : string
리턴 string