SlidePart.AddVideoReferenceRelationship 方法

定义

重载

AddVideoReferenceRelationship(MediaDataPart, String)

将 VideoReferenceRelationship 添加到 SlidePart

AddVideoReferenceRelationship(MediaDataPart)

将 VideoReferenceRelationship 添加到 SlidePart

AddVideoReferenceRelationship(MediaDataPart, String)

将 VideoReferenceRelationship 添加到 SlidePart

public DocumentFormat.OpenXml.Packaging.VideoReferenceRelationship AddVideoReferenceRelationship (DocumentFormat.OpenXml.Packaging.MediaDataPart mediaDataPart, string id);
member this.AddVideoReferenceRelationship : DocumentFormat.OpenXml.Packaging.MediaDataPart * string -> DocumentFormat.OpenXml.Packaging.VideoReferenceRelationship
Public Function AddVideoReferenceRelationship (mediaDataPart As MediaDataPart, id As String) As VideoReferenceRelationship

参数

mediaDataPart
MediaDataPart

VideoReferenceRelationship 的部件类型

id
String

关系 ID

返回

新的 VideoReferenceRelationship

例外

当 为 null 时 id 引发。

当指定的 mediaDataPart 不在本文档中时引发。

适用于

AddVideoReferenceRelationship(MediaDataPart)

将 VideoReferenceRelationship 添加到 SlidePart

public DocumentFormat.OpenXml.Packaging.VideoReferenceRelationship AddVideoReferenceRelationship (DocumentFormat.OpenXml.Packaging.MediaDataPart mediaDataPart);
member this.AddVideoReferenceRelationship : DocumentFormat.OpenXml.Packaging.MediaDataPart -> DocumentFormat.OpenXml.Packaging.VideoReferenceRelationship
Public Function AddVideoReferenceRelationship (mediaDataPart As MediaDataPart) As VideoReferenceRelationship

参数

mediaDataPart
MediaDataPart

VideoReferenceRelationship 的部件类型

返回

新的 VideoReferenceRelationship

例外

当 为 null 时 mediaDataPart 引发。

当指定的 mediaDataPart 不在本文档中时引发。

适用于