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
IsInSlideShow
public bool IsInSlideShow { get; }
Property Value
IsSupportWPS
public bool IsSupportWPS { get; set; }
Property Value
PPTApplication
public dynamic PPTApplication { get; }
Property Value
- dynamic
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
GetPptHwnd()
获取PPT窗口句柄
public IntPtr GetPptHwnd()
Returns
- IntPtr
窗口句柄,如果获取失败返回 IntPtr.Zero
GetPresentationName()
public string GetPresentationName()
Returns
GetPresentationPath()
public string GetPresentationPath()
Returns
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
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