C# Класс ComponentFactory.Krypton.Toolkit.ViewManager

Manages a view presentation for a control display surface.
Наследование: GlobalId, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Attach ( Control control, ViewBase root ) : void

Attach the view manager to provided control and root element.

ComponentFromPoint ( Point pt ) : Component

Is the provided point associated with a component.

Dispose ( ) : void

Clean up any resources.

DoubleClick ( Point pt ) : void

Perform double click processing.

EvalTransparentPaint ( IRenderer renderer ) : bool

Perform a layout of the view.

GetPreferredSize ( IRenderer renderer, Size proposedSize ) : Size

Discover the preferred size of the view.

GotFocus ( ) : void

Perform got focus handling.

KeyDown ( KeyEventArgs e ) : void

Perform key down handling.

KeyPress ( KeyPressEventArgs e ) : void

Perform key press handling.

KeyUp ( KeyEventArgs e ) : void

Perform key up handling.

Layout ( IRenderer renderer ) : void

Perform a layout of the view.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the view.

LostFocus ( ) : void

Perform lost focus handling.

MouseDown ( MouseEventArgs e, Point rawPt ) : void

Perform mouse down processing.

MouseLeave ( EventArgs e ) : void

Perform mouse leave processing.

MouseMove ( MouseEventArgs e, Point rawPt ) : void

Perform mouse movement handling.

MouseUp ( MouseEventArgs e, Point rawPt ) : void

Perform mouse up processing.

Paint ( IRenderer renderer, PaintEventArgs e ) : void

Perform a paint of the view.

Paint ( RenderContext context ) : void

Perform a paint of the view.

PerformMouseDownProcessed ( MouseEventArgs e ) : void

Raises the MouseDownProcessed event.

PerformMouseUpProcessed ( MouseEventArgs e ) : void

Raises the MouseUpProcessed event.

ResetCounters ( ) : void

Reset the internal counters.

ViewManager ( ) : System

Initialize a new instance of the ViewManager class.

ViewManager ( Control control, ViewBase root ) : System

Initialize a new instance of the ViewManager class.

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

Метод Описание
UpdateViewFromPoint ( Control control, Point pt ) : void

Update the active view based on the mouse position.

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

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

Attach the view manager to provided control and root element.
public Attach ( Control control, ViewBase root ) : void
control System.Windows.Forms.Control Owning control.
root ViewBase Root of the view hierarchy.
Результат void

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

Is the provided point associated with a component.
public ComponentFromPoint ( Point pt ) : Component
pt Point Mouse point.
Результат System.ComponentModel.Component

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

Clean up any resources.
public Dispose ( ) : void
Результат void

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

Perform double click processing.
public DoubleClick ( Point pt ) : void
pt Point Control coordinates point.
Результат void

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

Perform a layout of the view.
public EvalTransparentPaint ( IRenderer renderer ) : bool
renderer IRenderer Renderer provider.
Результат bool

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

Discover the preferred size of the view.
public GetPreferredSize ( IRenderer renderer, Size proposedSize ) : Size
renderer IRenderer Renderer provider.
proposedSize System.Drawing.Size The custom-sized area for a control.
Результат System.Drawing.Size

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

Perform got focus handling.
public GotFocus ( ) : void
Результат void

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

Perform key down handling.
public KeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
Результат void

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

Perform key press handling.
public KeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A KeyPressEventArgs that contains the event data.
Результат void

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

Perform key up handling.
public KeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
Результат void

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

Perform a layout of the view.
public Layout ( IRenderer renderer ) : void
renderer IRenderer Renderer provider.
Результат void

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

Perform a layout of the view.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext View context for layout operation.
Результат void

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

Perform lost focus handling.
public LostFocus ( ) : void
Результат void

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

Perform mouse down processing.
public MouseDown ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
Результат void

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

Perform mouse leave processing.
public MouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Результат void

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

Perform mouse movement handling.
public MouseMove ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
Результат void

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

Perform mouse up processing.
public MouseUp ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
Результат void

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

Perform a paint of the view.
public Paint ( IRenderer renderer, PaintEventArgs e ) : void
renderer IRenderer Renderer provider.
e PaintEventArgs A PaintEventArgs that contains the event data.
Результат void

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

Perform a paint of the view.
public Paint ( RenderContext context ) : void
context RenderContext Renderer context.
Результат void

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

Raises the MouseDownProcessed event.
public PerformMouseDownProcessed ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs containing the event data.
Результат void

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

Raises the MouseUpProcessed event.
public PerformMouseUpProcessed ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs containing the event data.
Результат void

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

Reset the internal counters.
public ResetCounters ( ) : void
Результат void

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

Update the active view based on the mouse position.
protected UpdateViewFromPoint ( Control control, Point pt ) : void
control System.Windows.Forms.Control Source control.
pt Point Point within the source control.
Результат void

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

Initialize a new instance of the ViewManager class.
public ViewManager ( ) : System
Результат System

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

Initialize a new instance of the ViewManager class.
public ViewManager ( Control control, ViewBase root ) : System
control System.Windows.Forms.Control Owning control.
root ViewBase Root of the view hierarchy.
Результат System