C# Class Sphere.Core.Editor.EditorPanel

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

Méthodes publiques

Méthode Description
EditorPanel ( ) : System.Drawing

Initializes a new instance of the EditorPanel.

Méthodes protégées

Méthode 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 méthode

Initializes a new instance of the EditorPanel.
public EditorPanel ( ) : System.Drawing
Résultat System.Drawing

OnScroll() protected méthode

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

ScrollToControl() protected méthode

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