Table of Contents

Class ComPPTLinkManager

Namespace
Ink_Canvas.Helpers
Assembly
InkCanvasForClass.dll
public class ComPPTLinkManager : IPPTLinkManager, IDisposable
Inheritance
ComPPTLinkManager
Implements
Inherited Members

Constructors

ComPPTLinkManager()

public ComPPTLinkManager()

Properties

IsConnected

public bool IsConnected { get; }

Property Value

bool

IsInSlideShow

public bool IsInSlideShow { get; }

Property Value

bool

IsSupportWPS

public bool IsSupportWPS { get; set; }

Property Value

bool

PPTApplication

public object PPTApplication { get; }

Property Value

object

SkipAnimationsWhenNavigating

public bool SkipAnimationsWhenNavigating { get; set; }

Property Value

bool

SlidesCount

public int SlidesCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetCurrentActivePresentation()

public object GetCurrentActivePresentation()

Returns

object

GetCurrentSlideNumber()

public int GetCurrentSlideNumber()

Returns

int

GetPresentationName()

public string GetPresentationName()

Returns

string

ReloadConnection()

强制断开当前 COM PPT 连接并停止对其监控,同时写入事件日志。

public void ReloadConnection()

Remarks

会向日志记录一条事件信息并调用内部管理器停止监控;该方法不会重新启动监控或重新初始化内部管理器实例。

StartMonitoring()

开始监控本地 PowerPoint 的连接与运行状态,并在状态变化时触发相应事件。

public void StartMonitoring()

StopMonitoring()

停止对 PowerPoint 的监控,断开当前连接并停止触发相关事件。

public void StopMonitoring()

TryEndSlideShow()

尝试结束当前正在进行的幻灯片放映。

public bool TryEndSlideShow()

Returns

bool

true 如果放映已成功结束,false 否则。

TryNavigateNext()

public bool TryNavigateNext()

Returns

bool

TryNavigatePrevious()

public bool TryNavigatePrevious()

Returns

bool

TryNavigateToSlide(int)

public bool TryNavigateToSlide(int slideNumber)

Parameters

slideNumber int

Returns

bool

TryShowSlideNavigation()

public bool TryShowSlideNavigation()

Returns

bool

TryStartSlideShow()

尝试启动当前演示文稿的放映模式。

public bool TryStartSlideShow()

Returns

bool

true 如果放映已成功启动,false 否则。

Events

PPTConnectionChanged

public event Action<bool> PPTConnectionChanged

Event Type

Action<bool>

PresentationClose

public event Action<object> PresentationClose

Event Type

Action<object>

PresentationOpen

public event Action<object> PresentationOpen

Event Type

Action<object>

SlideShowBegin

public event Action<object> SlideShowBegin

Event Type

Action<object>

SlideShowEnd

public event Action<object> SlideShowEnd

Event Type

Action<object>

SlideShowNextSlide

public event Action<object> SlideShowNextSlide

Event Type

Action<object>

SlideShowStateChanged

public event Action<bool> SlideShowStateChanged

Event Type

Action<bool>