C# 클래스 SIL.FieldWorks.SharpViews.GraphicsManager

A class that manages the lifetime of an IVwGraphics. Intended usage is using(var gm = new GraphicsManager(this, g)) { // do something with gm.VwGraphics }
상속: IDisposable
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
GraphicsManager ( Control c ) : System

This version will create (and dispose of properly when this is disposed) a Graphics using c.CreateGraphics().

GraphicsManager ( Control c, Graphics g ) : System

Make one with the specified control and Graphics (typically passed in to a Paint method). The Graphics will not be disposed.

비공개 메소드들

메소드 설명
Dispose ( bool properly ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GraphicsManager() 공개 메소드

This version will create (and dispose of properly when this is disposed) a Graphics using c.CreateGraphics().
public GraphicsManager ( Control c ) : System
c System.Windows.Forms.Control
리턴 System

GraphicsManager() 공개 메소드

Make one with the specified control and Graphics (typically passed in to a Paint method). The Graphics will not be disposed.
public GraphicsManager ( Control c, Graphics g ) : System
c System.Windows.Forms.Control
g System.Drawing.Graphics
리턴 System