menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfSoundChannels - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfSoundChannels

    The number of sound channels.

    Inheritance
    System.Object
    PdfSoundChannels
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public sealed class PdfSoundChannels : Enum
    Examples
    //Load an existing document.
    PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf");
    //Gets the annotation from loaded document.
    PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation;
    //Sets the sound annotation border
    soundAnnotation.Border.Width = 4;
    soundAnnotation.Border.HorizontalRadius = 20;
    soundAnnotation.Border.VerticalRadius = 30;
    //Set the PDF sound annotation icon.
    soundAnnotation.Icon = PdfSoundIcon.Speaker;
    //Sets the PDF sound.
     PdfSound sound = new PdfSound("Startup.wav");
     soundAnnotation.Sound=sound;
    //Save the document.
    document.Save("SoundAnnotation.pdf");
    document.Close(true);
    'Load an existing document.
    Dim document As New PdfLoadedDocument("..\..\Annotations.pdf")
    'Gets the annotation from loaded document.
    Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation
    'Sets the sound annotation border
    soundAnnotation.Border.Width = 4
    soundAnnotation.Border.HorizontalRadius = 20
    soundAnnotation.Border.VerticalRadius = 30
    'Set the PDF sound annotation icon.
    soundAnnotation.Icon = PdfSoundIcon.Speaker
    Sets the PDF sound.
    Dim sound As PdfSound  = New PdfSound("Startup.wav")
    sound.Channels = PdfSoundChannels.Mono
    'Save the document.
    document.Save("SoundAnnotation.pdf")
    document.Close(True)

    Fields

    Mono

    One channel.

    Declaration
    public const PdfSoundChannels Mono
    Field Value
    Type
    PdfSoundChannels

    Stereo

    Two channels.

    Declaration
    public const PdfSoundChannels Stereo
    Field Value
    Type
    PdfSoundChannels

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    PdfDocument
    PdfSoundAnnotation
    PdfSound
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved