Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 通过VSTO/C在PowerPoint中显示字数#_C#_Powerpoint_Vsto - Fatal编程技术网

C# 通过VSTO/C在PowerPoint中显示字数#

C# 通过VSTO/C在PowerPoint中显示字数#,c#,powerpoint,vsto,C#,Powerpoint,Vsto,我希望通过PowerPoint信息/属性中显示的C#-例如字数-访问文档属性 有人有如何访问这些信息的示例代码吗?以下是一些演示对象模型工作原理的VB代码: Sub ShowWords() MsgBox ActivePresentation.BuiltInDocumentProperties("Number of words") End Sub 除非你天生直觉告诉你每个属性的内部名称,否则你可能会发现这也很有用。。。列出每个属性的名称: Sub ListProper

我希望通过PowerPoint信息/属性中显示的C#-例如字数-访问文档属性


有人有如何访问这些信息的示例代码吗?

以下是一些演示对象模型工作原理的VB代码:

Sub ShowWords()
    MsgBox ActivePresentation.BuiltInDocumentProperties("Number of words")
End Sub
除非你天生直觉告诉你每个属性的内部名称,否则你可能会发现这也很有用。。。列出每个属性的名称:

Sub ListProperties()
    Dim x As Long
    For x = 1 To ActivePresentation.BuiltInDocumentProperties.Count
        Debug.Print ActivePresentation.BuiltInDocumentProperties(x).Name
    Next
End Sub