Table of Contents

Class ROTPPTManager

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

Constructors

ROTPPTManager()

public ROTPPTManager()

Properties

CurrentPresentation

public dynamic CurrentPresentation { get; }

Property Value

dynamic

CurrentSlide

public dynamic CurrentSlide { get; }

Property Value

dynamic

CurrentSlides

public dynamic CurrentSlides { get; }

Property Value

dynamic

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 dynamic PPTApplication { get; }

Property Value

dynamic

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

GetPptHwnd()

获取PPT窗口句柄

public IntPtr GetPptHwnd()

Returns

IntPtr

窗口句柄,如果获取失败返回 IntPtr.Zero

GetPresentationName()

public string GetPresentationName()

Returns

string

GetPresentationPath()

public string GetPresentationPath()

Returns

string

ReloadConnection()

重新加载或重建与 PowerPoint 的连接。

public void ReloadConnection()

Remarks

调用后实现应刷新内部连接与状态,必要时重建与 PowerPoint 的会话;此操作可能导致 IsConnected 变化并触发 PPTConnectionChanged 或其他相关事件(例如 SlideShowStateChanged)。

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>