Свойство | Тип | Описание | |
---|---|---|---|
CanApplyStyle | bool | ||
Dispose | void | ||
ExtendSelection | void | ||
ExtendSelection | void | ||
GetBuilder | ViewBuilder | ||
RaiseLazyExpanded | void | ||
RaiseSizeChanged | void | ||
Relayout | bool | ||
ResumePaint | void | ||
SuspendPaint | void |
Метод | Описание | |
---|---|---|
CanCopy ( ) : bool | ||
CanCut ( ) : bool | ||
CanDelete ( ) : bool |
Checks whether the Selection can be deleted
|
|
CanPaste ( ) : bool | ||
ChildTransformFromRootTransform ( |
Since this IS the root, by definition the root transform is its transform.
|
|
Dispose ( ) : void | ||
FlashInsertionPoint ( ) : void |
Call this ever half second or so to make the insertion point (if any) flash.
|
|
Layout ( |
||
OnApplyStyle ( string style ) : void |
Changes the style of the Selection to the chosen style
|
|
OnDelete ( ) : void |
If the Selection is an Insertion Point the character following the Selection will be removed If the Selection is a Ranged Selection the entire Selection will be removed
|
|
OnDoubleClick ( |
||
OnDragDrop ( |
Implement dragging to this view.
|
|
OnDragEnter ( |
Returns information about possible drops with these arguments.
|
|
OnDragLeave ( ) : void |
Called when drag leaves this control.
|
|
OnEditCopy ( ) : void | ||
OnEditCut ( ) : void | ||
OnEditPaste ( ) : void | ||
OnMouseClick ( MouseEventArgs e, Keys keys, IVwGraphics vg, |
Places an insertion point within a ranged selection, only if the mouse down occured within the selection. OnMouseDown takes care of all other situations.
|
|
OnMouseDown ( MouseEventArgs e, Keys keys, IVwGraphics vg, |
Places an insertion point unless it would be placed within a ranged selection. Also determines sets whether the mouse down occured within a ranged selection, so that OnMouseMove can know if it can drag and so that OnMouseClick can know if can place an insertion point within the ranged selection.
|
|
OnMouseMove ( MouseEventArgs e, Keys keys, IVwGraphics vg, |
Allows for text to be selected and dragged. This method starts the drag instead of OnMouseDown because once the drag is started, OnMouseClick/DoubleClick is overridden. OnMouseDown would start the drag too early.
|
|
OnQueryContinueDrag ( System.Windows.Forms.QueryContinueDragEventArgs e ) : void |
Despite the method name (chosen to match the method of Control which it implements), our main reason for implementing this is to be notified when the drop takes place and, if it is a move, delete the original.
|
|
Paint ( IVwGraphics vg, |
The root box handles the overall paint.
|
|
RootBox ( |
||
ScrollToShowSelection ( IVwGraphics vg, |
Determine how far we need to scroll to make the current selection visible within the target rectangle (typically the clientRect of the view). Currently the goal is - if the selection is entirely within the rectangle return 0,0 (don't move) - otherwise if possible move the smallest distance that will put the selection at least 10 pixels inside the rectangle on both sides - if that is not possible move the smallest distance that will put the selection entirely inside the rectangle - if that is not possible move so that the primary rectangle of the IP at the DragEnd of the selection is inside the rectangle, at the top if it is the start and at the bottom if it is at the end. - if it is not possible to display even the primary rectangle of one IP, move so that equal amounts of it are above and below the rectangle. Eventually when we do horizontal scrolling the two directions will be independent. For example, even if we must move vertically, don't move horizontally to get the 10 pixel margin unless we must to see it at all.
|
Метод | Описание | |
---|---|---|
CanApplyStyle ( string style ) : bool |
Checks whether a Selection's style can be changed
|
|
Dispose ( bool beforeDestructor ) : void | ||
ExtendSelection ( MouseEventArgs e, bool makeRange, IVwGraphics vg, |
This is basically the common logic of MouseDown and MouseMove, when the left mouse button is pressed. If makeRange is true, as for shift-click or mouse move, we try to move the drag end of a range; otherwise, we make the selection where it is.
|
|
ExtendSelection ( |
||
GetBuilder ( GroupBox destination ) : ViewBuilder |
Answer a viewbuilder for adding stuff to the specified box. Subclasses may wish to return a subclass of ViewBuilder.
|
|
RaiseLazyExpanded ( LazyExpandedEventArgs args ) : void | ||
RaiseSizeChanged ( ) : void | ||
Relayout ( |
Overriden since, if our old Height is zero, the base method will assume the box is new and does not need invalidate, since it's container will figure its new area. But the root has no container, so we handle this special case here.
|
|
ResumePaint ( ) : void | ||
SuspendPaint ( |
public ChildTransformFromRootTransform ( |
||
rootTransform | ||
Результат |
public Layout ( |
||
transform | ||
Результат | void |
public OnApplyStyle ( string style ) : void | ||
style | string | |
Результат | void |
public OnDoubleClick ( |
||
e | ||
Результат | void |
public OnDragDrop ( |
||
drgevent | ||
location | Point | |
vg | IVwGraphics | |
ptrans | ||
Результат | void |
public OnDragEnter ( |
||
drgevent | ||
location | Point | |
vg | IVwGraphics | |
ptrans | ||
Результат | void |
public OnMouseClick ( MouseEventArgs e, Keys keys, IVwGraphics vg, |
||
e | MouseEventArgs | |
keys | Keys | |
vg | IVwGraphics | |
ptrans | ||
Результат | void |
public OnMouseDown ( MouseEventArgs e, Keys keys, IVwGraphics vg, |
||
e | MouseEventArgs | |
keys | Keys | |
vg | IVwGraphics | |
ptrans | ||
Результат | void |
public OnMouseMove ( MouseEventArgs e, Keys keys, IVwGraphics vg, |
||
e | MouseEventArgs | |
keys | Keys | |
vg | IVwGraphics | |
ptrans | ||
Результат | void |
public OnQueryContinueDrag ( System.Windows.Forms.QueryContinueDragEventArgs e ) : void | ||
e | System.Windows.Forms.QueryContinueDragEventArgs | |
Результат | void |
public Paint ( IVwGraphics vg, |
||
vg | IVwGraphics | |
ptrans | ||
Результат | void |
public RootBox ( |
||
styles | ||
Результат | System |
public ScrollToShowSelection ( IVwGraphics vg, |
||
vg | IVwGraphics | |
ptrans | ||
targetRect | ||
dx | int | |
dy | int | |
Результат | void |