API Reference
PowerPointMedia
Represents an embedded audio or video media frame on a slide.
Inheritance
- PowerPointPicture
- PowerPointMedia
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PowerPointMedia.SetPlaybackOptions
- Method PowerPointMedia.UpdateLink
- Method PowerPointSlide.AddAudio
- Method PowerPointSlide.AddAudio
- Method PowerPointSlide.AddLinkedAudio
- Method PowerPointSlide.AddLinkedVideo
- Method PowerPointSlide.AddVideo
- Method PowerPointSlide.AddVideo
- Property PowerPointSlide.Media
Methods
public PowerPointMediaPlaybackOptions GetPlaybackOptions() #PowerPointMediaPlaybackOptionsReads typed playback metadata from the native timing and media nodes.
public PowerPointMedia SetPlaybackOptions(PowerPointMediaPlaybackOptions options) #PowerPointMediaUpdates native playback, trim, and fade metadata in place.
Parameters
- options OfficeIMO.PowerPoint.PowerPointMediaPlaybackOptions
public Void UpdateData(Stream media) #VoidReplaces the embedded audio or video payload.
Parameters
- media System.IO.Stream
public PowerPointMedia UpdateLink(Uri uri) #PowerPointMediaUpdates a linked media URI without rewriting the frame or timing tree.
Parameters
- uri System.Uri
Inherited Methods
public Void Crop(Double leftPercent, Double topPercent, Double rightPercent, Double bottomPercent) #VoidParameters
- leftPercent Double
- topPercent Double
- rightPercent Double
- bottomPercent Double
public PowerPointShape Duplicate(Int64 offsetX = 0, Int64 offsetY = 0) #PowerPointShapeParameters
- offsetX Int64 = 0
- offsetY Int64 = 0
public PowerPointShape DuplicateCm(Double offsetXCm, Double offsetYCm) #PowerPointShapeParameters
- offsetXCm Double
- offsetYCm Double
public PowerPointShape DuplicateInches(Double offsetXInches, Double offsetYInches) #PowerPointShapeParameters
- offsetXInches Double
- offsetYInches Double
public PowerPointShape DuplicatePoints(Double offsetXPoints, Double offsetYPoints) #PowerPointShapeParameters
- offsetXPoints Double
- offsetYPoints Double
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
public Void FitToBox(Double imageWidth, Double imageHeight, Boolean crop = true) #VoidParameters
- imageWidth Double
- imageHeight Double
- crop Boolean = true
public Void MoveBy(Int64 offsetX, Int64 offsetY) #VoidParameters
- offsetX Int64
- offsetY Int64
public Void MoveByCm(Double offsetXCm, Double offsetYCm) #VoidParameters
- offsetXCm Double
- offsetYCm Double
public Void MoveByInches(Double offsetXInches, Double offsetYInches) #VoidParameters
- offsetXInches Double
- offsetYInches Double
public Void MoveByPoints(Double offsetXPoints, Double offsetYPoints) #VoidParameters
- offsetXPoints Double
- offsetYPoints Double
public Void MoveToReadingOrder(Int32 order) #VoidParameters
- order Int32
public Void Resize(Int64 width, Int64 height, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- width Int64
- height Int64
- anchor PowerPointShapeAnchor = TopLeft
public Void ResizeCm(Double widthCm, Double heightCm, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- widthCm Double
- heightCm Double
- anchor PowerPointShapeAnchor = TopLeft
public Void ResizeInches(Double widthInches, Double heightInches, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- widthInches Double
- heightInches Double
- anchor PowerPointShapeAnchor = TopLeft
public Void ResizePoints(Double widthPoints, Double heightPoints, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- widthPoints Double
- heightPoints Double
- anchor PowerPointShapeAnchor = TopLeft
public Void Scale(Double scale, PowerPointShapeAnchor anchor = Center) #VoidParameters
- scale Double
- anchor PowerPointShapeAnchor = Center
public Void Scale(Double scaleX, Double scaleY, PowerPointShapeAnchor anchor = Center) #VoidParameters
- scaleX Double
- scaleY Double
- anchor PowerPointShapeAnchor = Center
public Void SetBlur(Double radiusPoints, Boolean grow = false) #VoidParameters
- radiusPoints Double
- grow Boolean = false
public Void SetClickSound(Stream audio, String name, String contentType = "audio/wav", String extension = ".wav") #VoidParameters
- audio Stream
- name String
- contentType String = "audio/wav"
- extension String = ".wav"
public Void SetClickStopsSound(Boolean value) #VoidParameters
- value Boolean
public Void SetGlow(String color, Double radiusPoints = 4, Int32 transparencyPercent = 30) #VoidParameters
- color String
- radiusPoints Double = 4
- transparencyPercent Int32 = 30
public PowerPointShape SetLanguage(String language) #PowerPointShapeParameters
- language String
public Void SetLineEnds(Nullable<OfficeLineMarkerKind> startType, Nullable<OfficeLineMarkerKind> endType, Nullable<PowerPointLineEndWidth> width = null, Nullable<PowerPointLineEndLength> length = null) #VoidParameters
- startType Nullable<OfficeLineMarkerKind>
- endType Nullable<OfficeLineMarkerKind>
- width Nullable<PowerPointLineEndWidth> = null
- length Nullable<PowerPointLineEndLength> = null
public Void SetMouseOverSound(Stream audio, String name, String contentType = "audio/wav", String extension = ".wav") #VoidParameters
- audio Stream
- name String
- contentType String = "audio/wav"
- extension String = ".wav"
public Void SetMouseOverStopsSound(Boolean value) #VoidParameters
- value Boolean
public Void SetPositionCm(Double leftCm, Double topCm) #VoidParameters
- leftCm Double
- topCm Double
public Void SetPositionInches(Double leftInches, Double topInches) #VoidParameters
- leftInches Double
- topInches Double
public Void SetPositionPoints(Double leftPoints, Double topPoints) #VoidParameters
- leftPoints Double
- topPoints Double
public Void SetReflection(Double blurPoints = 4, Double distancePoints = 2, Double directionDegrees = 270, Double fadeDirectionDegrees = 90, Int32 startOpacityPercent = 50, Int32 endOpacityPercent = 0, Int32 startPositionPercent = 0, Int32 endPositionPercent = 100, Nullable<PowerPointRectangleAlignment> alignment = null, Boolean rotateWithShape = false) #VoidParameters
- blurPoints Double = 4
- distancePoints Double = 2
- directionDegrees Double = 270
- fadeDirectionDegrees Double = 90
- startOpacityPercent Int32 = 50
- endOpacityPercent Int32 = 0
- startPositionPercent Int32 = 0
- endPositionPercent Int32 = 100
- alignment Nullable<PowerPointRectangleAlignment> = null
- rotateWithShape Boolean = false
public Void SetShadow(String color, Double blurPoints = 4, Double distancePoints = 3, Double angleDegrees = 45, Int32 transparencyPercent = 35, Boolean rotateWithShape = false) #VoidParameters
- color String
- blurPoints Double = 4
- distancePoints Double = 3
- angleDegrees Double = 45
- transparencyPercent Int32 = 35
- rotateWithShape Boolean = false
public Void SetSizeCm(Double widthCm, Double heightCm) #VoidParameters
- widthCm Double
- heightCm Double
public Void SetSizeInches(Double widthInches, Double heightInches) #VoidParameters
- widthInches Double
- heightInches Double
public Void SetSizePoints(Double widthPoints, Double heightPoints) #VoidParameters
- widthPoints Double
- heightPoints Double
public Void SetSoftEdges(Double radiusPoints) #VoidParameters
- radiusPoints Double
public Void UpdateImage(Stream newImage, OfficeImageFormat type) #VoidParameters
- newImage Stream
- type OfficeImageFormat
public Void UpdateImage(String imagePath) #VoidParameters
- imagePath String
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.
public Uri LinkUri { get; } #Gets the external media URI when linked.
Inherited Properties
public String ContentType { get; } #public String MimeType { get; } #public Double CropLeftRatio { get; } #public Double CropTopRatio { get; } #public Double CropRightRatio { get; } #public Double CropBottomRatio { get; } #public Nullable<Int32> LuminanceBrightness { get; set; } #public Nullable<Int32> LuminanceContrast { get; set; } #public Boolean GrayScale { get; set; } #public Nullable<Int32> BlackWhiteThreshold { get; set; } #public Nullable<OfficeColor> TransparentColor { get; set; } #public Nullable<OfficeColor> RecolorColor { get; set; } #public String Title { get; set; } #public String Description { get; set; } #public Boolean Decorative { get; set; } #public Int32 ReadingOrder { get; } #public String Language { get; } #public IReadOnlyList<String> Languages { get; } #public String FillColor { get; set; } #public Nullable<Int32> FillTransparency { get; set; } #public Nullable<Double> Rotation { get; set; } #public Nullable<Boolean> HorizontalFlip { get; set; } #public Nullable<Boolean> VerticalFlip { get; set; } #public Nullable<UInt32> Id { get; } #public String Name { get; set; } #public String AltText { get; set; } #public Uri Hyperlink { get; } #public Nullable<PowerPointPlaceholderType> ShapePlaceholderType { get; } #public Nullable<UInt32> ShapePlaceholderIndex { get; } #public Nullable<PowerPointPlaceholderSize> ShapePlaceholderSize { get; } #public Nullable<PowerPointPlaceholderDirection> ShapePlaceholderOrientation { get; } #public PowerPointShapeContentType ShapeContentType { get; } #public Int32 DrawingOrder { get; } #public Int64 Left { get; set; } #public Double LeftPoints { get; set; } #public Double LeftCm { get; set; } #public Double LeftInches { get; set; } #public Int64 Top { get; set; } #public Double TopPoints { get; set; } #public Double TopCm { get; set; } #public Double TopInches { get; set; } #public Int64 Width { get; set; } #public Double WidthPoints { get; set; } #public Double WidthCm { get; set; } #public Double WidthInches { get; set; } #public Int64 Height { get; set; } #public Double HeightPoints { get; set; } #public Double HeightCm { get; set; } #public Double HeightInches { get; set; } #public Int64 Right { get; set; } #public Double RightPoints { get; set; } #public Double RightCm { get; set; } #public Double RightInches { get; set; } #public Int64 Bottom { get; set; } #public Double BottomPoints { get; set; } #public Double BottomCm { get; set; } #public Double BottomInches { get; set; } #public Int64 CenterX { get; set; } #public Double CenterXPoints { get; set; } #public Double CenterXCm { get; set; } #public Double CenterXInches { get; set; } #public Int64 CenterY { get; set; } #public Double CenterYPoints { get; set; } #public Double CenterYCm { get; set; } #public Double CenterYInches { get; set; } #public PowerPointLayoutBox Bounds { get; set; } #public String OutlineColor { get; set; } #public Nullable<Int32> OutlineTransparency { get; set; } #public Nullable<Double> OutlineWidthPoints { get; set; } #public Nullable<PowerPointLineDashStyle> OutlineDash { get; set; } #public String ClickSoundName { get; } #public String MouseOverSoundName { get; } #