C# 클래스 Smrf.AppLib.ExcelCalculationRestorer

Restores the Calculation property of an Excel Application object after a specified period.
This class can be used by callers that modify the Calculation property of an Excel Application object but want the original property value automatically restored after a specified time.

Create a ExcelCalculationRestorer object before the Application.Calculation property is changed. When the property is changed, call StartRestoreTimer. After milliseconds, the original property value will be automatically restored.

StartRestoreTimer can be called repeatedly to restart the restore timer.

Optionally, call Restore to immediately restore the original property value.

상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oTimer System.Windows.Forms.Timer

공개 메소드들

메소드 설명
ExcelCalculationRestorer ( Microsoft application ) : System

Initializes a new instance of the class.

Restore ( ) : void
StartRestoreTimer ( ) : void

보호된 메소드들

메소드 설명
m_oTimer_Tick ( object sender, EventArgs e ) : void

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

ExcelCalculationRestorer() 공개 메소드

Initializes a new instance of the class.
public ExcelCalculationRestorer ( Microsoft application ) : System
application Microsoft /// Application object whose Calculation property needs to be recorded and /// later restored. ///
리턴 System

Restore() 공개 메소드

public Restore ( ) : void
리턴 void

StartRestoreTimer() 공개 메소드

public StartRestoreTimer ( ) : void
리턴 void

m_oTimer_Tick() 보호된 메소드

protected m_oTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

m_oTimer 보호되어 있는 프로퍼티

protected System.Windows.Forms.Timer m_oTimer
리턴 System.Windows.Forms.Timer