C# Class Braincase.GanttChart.ControlViewport

An IViewport that is placed over a world coordinate system and provides methods to transform between world and view coordinates
Inheritance: IViewport
Afficher le fichier Open project: JackWangCUMT/NetGanttControl Class Usage Examples

Méthodes publiques

Свойство Type Description
Identity Matrix

Méthodes publiques

Méthode Description
ControlViewport ( Control view ) : System

Construct a Viewport

DeviceToWorldCoord ( Point screencoord ) : PointF

Convert view coordinates to world coordinates

DeviceToWorldCoord ( PointF screencoord ) : PointF

Convert view coordinates to world coordinates

Resize ( ) : void

Resize the Viewport according to the view control and world dimensions, which ever larger and add scrollbars where approperiate

WorldToDeviceCoord ( PointF worldcoord ) : PointF

Convert world coordinates to view coordinates

Private Methods

Méthode Description
_RecalculateMatrix ( ) : void
_RecalculateRectangle ( ) : void

Method Details

ControlViewport() public méthode

Construct a Viewport
public ControlViewport ( Control view ) : System
view System.Windows.Forms.Control
Résultat System

DeviceToWorldCoord() public méthode

Convert view coordinates to world coordinates
public DeviceToWorldCoord ( Point screencoord ) : PointF
screencoord Point
Résultat System.Drawing.PointF

DeviceToWorldCoord() public méthode

Convert view coordinates to world coordinates
public DeviceToWorldCoord ( PointF screencoord ) : PointF
screencoord System.Drawing.PointF
Résultat System.Drawing.PointF

Resize() public méthode

Resize the Viewport according to the view control and world dimensions, which ever larger and add scrollbars where approperiate
public Resize ( ) : void
Résultat void

WorldToDeviceCoord() public méthode

Convert world coordinates to view coordinates
public WorldToDeviceCoord ( PointF worldcoord ) : PointF
worldcoord System.Drawing.PointF
Résultat System.Drawing.PointF

Property Details

Identity public_oe static_oe property

Identity Matrix
public static Matrix Identity
Résultat Matrix