C# Class Sphere.Core.Editor.EditorPanel

A fast drawing panel for editing, without worrying about odd scroll-to behavior.
Inheritance: System.Windows.Forms.Panel
Datei anzeigen Open project: Radnen/spherestudio

Public Methods

Method Description
EditorPanel ( ) : System.Drawing

Initializes a new instance of the EditorPanel.

Protected Methods

Method Description
OnScroll ( ScrollEventArgs se ) : void

Overrides the default scroll behavior to add grid snapping.

ScrollToControl ( Control activeControl ) : Point

For fixing the horrendous scroll-to behavior.

Method Details

EditorPanel() public method

Initializes a new instance of the EditorPanel.
public EditorPanel ( ) : System.Drawing
return System.Drawing

OnScroll() protected method

Overrides the default scroll behavior to add grid snapping.
protected OnScroll ( ScrollEventArgs se ) : void
se System.Windows.Forms.ScrollEventArgs The scrolling properties.
return void

ScrollToControl() protected method

For fixing the horrendous scroll-to behavior.
protected ScrollToControl ( Control activeControl ) : Point
activeControl System.Windows.Forms.Control Doesn't matter.
return System.Drawing.Point