Class ROTPPTManager
- Namespace
- Ink_Canvas.Helpers
- Assembly
- InkCanvasForClass.dll
基于 ROT 的 PPT 联动管理器实现。
public class ROTPPTManager : IPPTLinkManager, IDisposable
- Inheritance
-
ROTPPTManager
- Implements
- Inherited Members
Constructors
ROTPPTManager()
public ROTPPTManager()
Properties
IsConnected
public bool IsConnected { get; }
Property Value
IsInSlideShow
public bool IsInSlideShow { get; }
Property Value
IsSupportWPS
public bool IsSupportWPS { get; set; }
Property Value
PPTApplication
通过 ROT 获取到的 PowerPoint.Application 实例。
public object PPTApplication { get; }
Property Value
SkipAnimationsWhenNavigating
public bool SkipAnimationsWhenNavigating { get; set; }
Property Value
SlidesCount
当前演示文稿的总页数(每次按需计算,不缓存 COM 对象)。
public int SlidesCount { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetCurrentActivePresentation()
public object GetCurrentActivePresentation()
Returns
GetCurrentSlideNumber()
public int GetCurrentSlideNumber()
Returns
GetPresentationName()
public string GetPresentationName()
Returns
ReloadConnection()
强制断开当前与 PowerPoint 的 ROT 连接并触发后续的重连流程。
public void ReloadConnection()
StartMonitoring()
启动内部轮询计时器以开始监测 ROT/PPT 连接状态和幻灯片放映状态。
public void StartMonitoring()
Remarks
如果实例已被释放(Dispose 已调用)或计时器未初始化,则此方法不会执行任何操作。
StopMonitoring()
停止内部的 ROT 监视计时器并断开与当前 PowerPoint 实例的连接。
public void StopMonitoring()
TryEndSlideShow()
尝试结束当前正在进行的幻灯片放映。
public bool TryEndSlideShow()
Returns
- bool
true如果放映已成功结束,false否则。
TryNavigateNext()
public bool TryNavigateNext()
Returns
TryNavigatePrevious()
public bool TryNavigatePrevious()
Returns
TryNavigateToSlide(int)
public bool TryNavigateToSlide(int slideNumber)
Parameters
slideNumberint
Returns
TryShowSlideNavigation()
public bool TryShowSlideNavigation()
Returns
TryStartSlideShow()
尝试启动当前演示文稿的放映模式。
public bool TryStartSlideShow()
Returns
- bool
true如果放映已成功启动,false否则。
Events
PPTConnectionChanged
public event Action<bool> PPTConnectionChanged
Event Type
PresentationClose
public event Action<object> PresentationClose
Event Type
PresentationOpen
public event Action<object> PresentationOpen
Event Type
SlideShowBegin
public event Action<object> SlideShowBegin
Event Type
SlideShowEnd
public event Action<object> SlideShowEnd
Event Type
SlideShowNextSlide
public event Action<object> SlideShowNextSlide
Event Type
SlideShowStateChanged
public event Action<bool> SlideShowStateChanged