Table of Contents

Class FileAssociationManager

Namespace
Ink_Canvas.Helpers
Assembly
InkCanvasForClass.dll

文件关联管理器,用于注册和处理.icstk文件的关联

public static class FileAssociationManager
Inheritance
FileAssociationManager
Inherited Members

Methods

GetIcstkFileFromArgs(string[])

处理命令行参数中的文件路径

public static string GetIcstkFileFromArgs(string[] args)

Parameters

args string[]

命令行参数

Returns

string

找到的.icstk文件路径,如果没有找到则返回null

IsFileAssociationRegistered()

检查文件关联是否已注册

public static bool IsFileAssociationRegistered()

Returns

bool

RegisterFileAssociation()

注册.icstk文件关联

public static bool RegisterFileAssociation()

Returns

bool

ShowFileAssociationStatus()

显示文件关联状态

public static void ShowFileAssociationStatus()

StartIpcListener()

启动IPC监听器,等待其他实例发送文件路径

public static void StartIpcListener()

TrySendBoardModeCommandToExistingInstance()

尝试通过IPC将白板模式命令发送给已运行的实例

public static bool TrySendBoardModeCommandToExistingInstance()

Returns

bool

是否成功发送

TrySendFileToExistingInstance(string)

尝试通过IPC将文件路径发送给已运行的实例

public static bool TrySendFileToExistingInstance(string filePath)

Parameters

filePath string

要打开的文件路径

Returns

bool

是否成功发送

TrySendShowModeCommandToExistingInstance()

尝试通过IPC将展开浮动栏命令发送给已运行的实例

public static bool TrySendShowModeCommandToExistingInstance()

Returns

bool

是否成功发送

TrySendUriCommandToExistingInstance(string)

尝试通过IPC将URI命令发送给已运行的实例

public static bool TrySendUriCommandToExistingInstance(string uri)

Parameters

uri string

URI命令

Returns

bool

是否成功发送

UnregisterFileAssociation()

注销.icstk文件关联

public static bool UnregisterFileAssociation()

Returns

bool