Click or drag to resize

GroupShapeAddVideo Method (VideoContentType, Stream, Double, Double, Double, Double, LengthUnit)

Adds a new Picture with a VideoContent media to the current GroupShape.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1041 (21.3.35.1041)
Syntax
public VideoContent AddVideo(
	VideoContentType contentType,
	Stream stream,
	double left,
	double top,
	double width,
	double height,
	LengthUnit unit
)

Parameters

contentType
Type: GemBox.Presentation.MediaVideoContentType
Content type of the video data.
stream
Type: System.IOStream
Stream containing the video data.
left
Type: SystemDouble
The location of the left edge of the bounding box enclosing a newly added Picture relative to the left edge of the slide on which the Picture is being added (prior to any rotation or flipping).
top
Type: SystemDouble
the location of the top edge of the bounding box enclosing a newly added Picture relative to the top edge of the slide on which the Picture is being added (prior to any rotation or flipping).
width
Type: SystemDouble
The width of the bounding box enclosing a newly added Picture (prior to any rotation or flipping).
height
Type: SystemDouble
The height of the bounding box enclosing a newly added Picture (prior to any rotation or flipping).
unit
Type: GemBox.PresentationLengthUnit
The measuring unit in which parameters left, top, width and height are specified.

Return Value

Type: VideoContent
A new VideoContent contained in a new Picture added to the current GroupShape.
See Also