Пример #1
0
        public static AnnotationSound Create(Rect rect, Sound sound)
        {
            AnnotationSound sound1 = AnnotationSound.Create(rect);

            sound1.sound = sound;
            return(sound1);
        }
Пример #2
0
        public static AnnotationSound Create(Rect rect, Sound sound, string iconname)
        {
            AnnotationSound sound1 = AnnotationSound.Create(rect);

            sound1.SoundIcon = iconname;
            sound1.sound     = sound;
            return(sound1);
        }
Пример #3
0
        private static AnnotationSound Create(Rect rect)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("Sound");
            AnnotationSound sound1 = (Resources.Get(dict1, typeof(AnnotationSound)) as AnnotationSound);

            sound1.Rect = rect;
            Library.CreateIndirect(dict1);
            return(sound1);
        }