12345678910111213141516171819202122232425262728293031323334353637383940 |
- using ComPDFKit.PDFAnnotation;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ComPDFKit.Tool.SettingParam
- {
- public class SoundParam : AnnotParam
- {
- public SoundParam ()
- {
- CurrentType = C_ANNOTATION_TYPE.C_ANNOTATION_SOUND;
- }
- public string SoundFilePath { get; set; } = string.Empty;
- public MemoryStream ImageStream { get; set; }
- public override bool CopyTo(AnnotParam transfer)
- {
- SoundParam soundTransfer = transfer as SoundParam;
- if (soundTransfer == null)
- {
- return false;
- }
- if (!base.CopyTo(soundTransfer))
- {
- return false;
- }
- soundTransfer.SoundFilePath = SoundFilePath;
- soundTransfer.ImageStream = ImageStream;
- return true;
- }
- }
- }
|