C# 클래스 Braincase.GanttChart.ControlViewport

An IViewport that is placed over a world coordinate system and provides methods to transform between world and view coordinates
상속: IViewport
파일 보기 프로젝트 열기: JackWangCUMT/NetGanttControl 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Identity Matrix

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
_RecalculateMatrix ( ) : void
_RecalculateRectangle ( ) : void

메소드 상세

ControlViewport() 공개 메소드

Construct a Viewport
public ControlViewport ( Control view ) : System
view System.Windows.Forms.Control
리턴 System

DeviceToWorldCoord() 공개 메소드

Convert view coordinates to world coordinates
public DeviceToWorldCoord ( Point screencoord ) : PointF
screencoord Point
리턴 System.Drawing.PointF

DeviceToWorldCoord() 공개 메소드

Convert view coordinates to world coordinates
public DeviceToWorldCoord ( PointF screencoord ) : PointF
screencoord System.Drawing.PointF
리턴 System.Drawing.PointF

Resize() 공개 메소드

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

WorldToDeviceCoord() 공개 메소드

Convert world coordinates to view coordinates
public WorldToDeviceCoord ( PointF worldcoord ) : PointF
worldcoord System.Drawing.PointF
리턴 System.Drawing.PointF

프로퍼티 상세

Identity 공개적으로 정적으로 프로퍼티

Identity Matrix
public static Matrix Identity
리턴 Matrix