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
IsInSlideShow
public bool IsInSlideShow { get; }
Property Value
IsSupportWPS
public bool IsSupportWPS { get; set; }
Property Value
PPTApplication
public object PPTApplication { get; }
Property Value
SkipAnimationsWhenNavigating
public bool SkipAnimationsWhenNavigating { get; set; }
Property Value
SlidesCount
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()
强制断开当前 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
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