PowerPointMedia
OfficeIMO.PowerPoint
Represents an embedded audio or video media frame on a slide.
Inheritance
- PowerPointShape
- PowerPointImage
- PowerPointMedia
Usage
Explore 7 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Method PowerPointMedia.SetPlaybackOptions
- Method PowerPointMedia.UpdateLink
- Method PowerPointSlide.AddAudio
- Method PowerPointSlide.AddLinkedAudio
- Method PowerPointSlide.AddLinkedVideo
- Method PowerPointSlide.AddVideo
- Property PowerPointSlide.Media
Methods
public PowerPointMediaPlaybackOptions GetPlaybackOptions() #Reads typed playback metadata from the native timing and media nodes.
public PowerPointMedia SetPlaybackOptions(PowerPointMediaPlaybackOptions options) #Updates native playback, trim, and fade metadata in place.
Parameters
- options OfficeIMO.PowerPoint.PowerPointMediaPlaybackOptions
Returns
PowerPointMediapublic void UpdateData(Stream media) #Replaces the embedded audio or video payload.
Parameters
- media System.IO.Stream
public PowerPointMedia UpdateLink(Uri uri) #Updates a linked media URI without rewriting the frame or timing tree.
Parameters
- uri System.Uri
Returns
PowerPointMediaInherited Methods
public PowerPointShape BindToPlaceholder(PowerPointPlaceholderType placeholderType, uint? index = null) #Parameters
- placeholderType PowerPointPlaceholderType
- index uint? = null
Returns
PowerPointShapepublic void Crop(double leftPercent, double topPercent, double rightPercent, double bottomPercent) #Parameters
- leftPercent double
- topPercent double
- rightPercent double
- bottomPercent double
public PowerPointShape Duplicate(OfficeLength offsetX = default, OfficeLength offsetY = default) #Parameters
- offsetX OfficeLength = default
- offsetY OfficeLength = default
Returns
PowerPointShapepublic void FitToBox(double imageWidth, double imageHeight, bool crop = true) #Parameters
- imageWidth double
- imageHeight double
- crop bool = true
public PowerPointShape MoveBy(OfficeLength offsetX, OfficeLength offsetY) #Parameters
- offsetX OfficeLength
- offsetY OfficeLength
Returns
PowerPointShapepublic PowerPointShape Resize(OfficeLength width, OfficeLength height, PowerPointShapeAnchor anchor = TopLeft) #Parameters
- width OfficeLength
- height OfficeLength
- anchor PowerPointShapeAnchor = TopLeft
Returns
PowerPointShapepublic PowerPointShape Scale(double scale, PowerPointShapeAnchor anchor = Center) #Parameters
- scale double
- anchor PowerPointShapeAnchor = Center
Returns
PowerPointShapepublic PowerPointShape Scale(double scaleX, double scaleY, PowerPointShapeAnchor anchor = Center) #Parameters
- scaleX double
- scaleY double
- anchor PowerPointShapeAnchor = Center
Returns
PowerPointShapepublic void SetBlur(OfficeLength radius, bool grow = false) #Parameters
- radius OfficeLength
- grow bool = false
public void SetClickSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav") #Parameters
- audio Stream
- name string
- contentType string = "audio/wav"
- extension string = ".wav"
public void SetGlow(OfficeColor color, OfficeLength? radius = null, int transparencyPercent = 30) #Parameters
- color OfficeColor
- radius OfficeLength? = null
- transparencyPercent int = 30
public void SetHyperlink(Uri uri, string? tooltip = null) #Parameters
- uri Uri
- tooltip string? = null
public void SetHyperlink(PowerPointSlide targetSlide, string? tooltip = null) #Parameters
- targetSlide PowerPointSlide
- tooltip string? = null
public PowerPointShape SetLanguage(string language) #Parameters
- language string
Returns
PowerPointShapepublic void SetLineEnds(OfficeLineMarkerKind? startType, OfficeLineMarkerKind? endType, PowerPointLineEndWidth? width = null, PowerPointLineEndLength? length = null) #Parameters
- startType OfficeLineMarkerKind?
- endType OfficeLineMarkerKind?
- width PowerPointLineEndWidth? = null
- length PowerPointLineEndLength? = null
public void SetMouseOverSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav") #Parameters
- audio Stream
- name string
- contentType string = "audio/wav"
- extension string = ".wav"
public PowerPointShape SetPosition(OfficeLength left, OfficeLength top) #Parameters
- left OfficeLength
- top OfficeLength
Returns
PowerPointShapepublic void SetReflection(OfficeLength? blur = null, OfficeLength? distance = null, double directionDegrees = 270, double fadeDirectionDegrees = 90, int startOpacityPercent = 50, int endOpacityPercent = 0, int startPositionPercent = 0, int endPositionPercent = 100, PowerPointRectangleAlignment? alignment = null, bool rotateWithShape = false) #Parameters
- blur OfficeLength? = null
- distance OfficeLength? = null
- directionDegrees double = 270
- fadeDirectionDegrees double = 90
- startOpacityPercent int = 50
- endOpacityPercent int = 0
- startPositionPercent int = 0
- endPositionPercent int = 100
- alignment PowerPointRectangleAlignment? = null
- rotateWithShape bool = false
public void SetShadow(OfficeColor color, OfficeLength? blur = null, OfficeLength? distance = null, double angleDegrees = 45, int transparencyPercent = 35, bool rotateWithShape = false) #Parameters
- color OfficeColor
- blur OfficeLength? = null
- distance OfficeLength? = null
- angleDegrees double = 45
- transparencyPercent int = 35
- rotateWithShape bool = false
public PowerPointShape SetSize(OfficeLength width, OfficeLength height) #Parameters
- width OfficeLength
- height OfficeLength
Returns
PowerPointShapepublic void SetSoftEdges(OfficeLength radius) #Parameters
- radius OfficeLength
public void UpdateImage(Stream newImage, OfficeImageFormat type) #Parameters
- newImage Stream
- type OfficeImageFormat
Properties
public PowerPointMediaKind Kind { get; } #Gets the media kind represented by this shape.
public string? MediaContentType { get; } #Gets the MIME content type of the embedded media part.
public string? MediaReferenceId { get; } #Gets the relationship id used by the audio/video file reference.
public string? PlaybackReferenceId { get; } #Gets the p14 media relationship id used by PowerPoint playback metadata.
public PowerPointMediaSourceKind SourceKind { get; } #Gets whether the payload is embedded, linked, or broken.
Inherited Properties
public int? LuminanceBrightness { get; set; } #public int? LuminanceContrast { get; set; } #public int? BlackWhiteThreshold { get; set; } #public OfficeColor? TransparentColor { get; set; } #public OfficeColor? RecolorColor { get; set; } #public string? Title { get; set; } #public bool Decorative { get; set; } #public IReadOnlyList<string> Languages { get; } #public OfficeColor? FillColor { get; set; } #public int? FillTransparency { get; set; } #public double? Rotation { get; set; } #public bool? HorizontalFlip { get; set; } #public bool? VerticalFlip { get; set; } #public PowerPointPlaceholderType? ShapePlaceholderType { get; } #public PowerPointPlaceholderSize? ShapePlaceholderSize { get; } #public PowerPointPlaceholderDirection? ShapePlaceholderOrientation { get; } #public PowerPointShapeContentType ShapeContentType { get; } #public OfficeLength Width { get; set; } #public OfficeLength Height { get; set; } #public IReadOnlyList<PowerPointConnectionSite> ConnectionSites { get; } #public OfficeLength Right { get; set; } #public OfficeLength Bottom { get; set; } #public OfficeLength CenterX { get; set; } #public OfficeLength CenterY { get; set; } #public PowerPointLayoutBox Bounds { get; set; } #public OfficeColor? OutlineColor { get; set; } #public int? OutlineTransparency { get; set; } #public OfficeLength? OutlineWidth { get; set; } #public PowerPointLineDashStyle? OutlineDash { get; set; } #public string? MouseOverSoundName { get; } #