コード例 #1
0
        public ConversionProfile Copy()
        {
            ConversionProfile copy = new ConversionProfile();

            copy.AttachmentPage          = AttachmentPage.Copy();
            copy.AutoSave                = AutoSave.Copy();
            copy.BackgroundPage          = BackgroundPage.Copy();
            copy.CoverPage               = CoverPage.Copy();
            copy.CustomScript            = CustomScript.Copy();
            copy.DropboxSettings         = DropboxSettings.Copy();
            copy.EmailClientSettings     = EmailClientSettings.Copy();
            copy.EmailSmtpSettings       = EmailSmtpSettings.Copy();
            copy.ForwardToFurtherProfile = ForwardToFurtherProfile.Copy();
            copy.Ftp                        = Ftp.Copy();
            copy.Ghostscript                = Ghostscript.Copy();
            copy.HttpSettings               = HttpSettings.Copy();
            copy.JpegSettings               = JpegSettings.Copy();
            copy.PdfSettings                = PdfSettings.Copy();
            copy.PngSettings                = PngSettings.Copy();
            copy.Printing                   = Printing.Copy();
            copy.Properties                 = Properties.Copy();
            copy.Scripting                  = Scripting.Copy();
            copy.Stamping                   = Stamping.Copy();
            copy.TextSettings               = TextSettings.Copy();
            copy.TiffSettings               = TiffSettings.Copy();
            copy.UserTokens                 = UserTokens.Copy();
            copy.Watermark                  = Watermark.Copy();
            copy.ActionOrder                = new List <string>(ActionOrder);
            copy.AuthorTemplate             = AuthorTemplate;
            copy.EnableWorkflowEditor       = EnableWorkflowEditor;
            copy.FileNameTemplate           = FileNameTemplate;
            copy.Guid                       = Guid;
            copy.KeywordTemplate            = KeywordTemplate;
            copy.Name                       = Name;
            copy.OpenViewer                 = OpenViewer;
            copy.OpenWithPdfArchitect       = OpenWithPdfArchitect;
            copy.OutputFormat               = OutputFormat;
            copy.SaveFileTemporary          = SaveFileTemporary;
            copy.ShowAllNotifications       = ShowAllNotifications;
            copy.ShowOnlyErrorNotifications = ShowOnlyErrorNotifications;
            copy.ShowProgress               = ShowProgress;
            copy.ShowQuickActions           = ShowQuickActions;
            copy.SkipPrintDialog            = SkipPrintDialog;
            copy.SubjectTemplate            = SubjectTemplate;
            copy.TargetDirectory            = TargetDirectory;
            copy.TitleTemplate              = TitleTemplate;
            return(copy);
        }
コード例 #2
0
        public ConversionProfile Copy()
        {
            ConversionProfile copy = new ConversionProfile();

            copy.AttachmentPage      = AttachmentPage.Copy();
            copy.AutoSave            = AutoSave.Copy();
            copy.BackgroundPage      = BackgroundPage.Copy();
            copy.CoverPage           = CoverPage.Copy();
            copy.DropboxSettings     = DropboxSettings.Copy();
            copy.EmailClientSettings = EmailClientSettings.Copy();
            copy.EmailSmtpSettings   = EmailSmtpSettings.Copy();
            copy.Ftp                  = Ftp.Copy();
            copy.Ghostscript          = Ghostscript.Copy();
            copy.HttpSettings         = HttpSettings.Copy();
            copy.JpegSettings         = JpegSettings.Copy();
            copy.PdfSettings          = PdfSettings.Copy();
            copy.PngSettings          = PngSettings.Copy();
            copy.Printing             = Printing.Copy();
            copy.Properties           = Properties.Copy();
            copy.SaveDialog           = SaveDialog.Copy();
            copy.Scripting            = Scripting.Copy();
            copy.Stamping             = Stamping.Copy();
            copy.TextSettings         = TextSettings.Copy();
            copy.TiffSettings         = TiffSettings.Copy();
            copy.UserTokens           = UserTokens.Copy();
            copy.AuthorTemplate       = AuthorTemplate;
            copy.FileNameTemplate     = FileNameTemplate;
            copy.Guid                 = Guid;
            copy.KeywordTemplate      = KeywordTemplate;
            copy.Name                 = Name;
            copy.OpenViewer           = OpenViewer;
            copy.OpenWithPdfArchitect = OpenWithPdfArchitect;
            copy.OutputFormat         = OutputFormat;
            copy.ShowProgress         = ShowProgress;
            copy.ShowQuickActions     = ShowQuickActions;
            copy.SkipPrintDialog      = SkipPrintDialog;
            copy.SubjectTemplate      = SubjectTemplate;
            copy.TargetDirectory      = TargetDirectory;
            copy.TitleTemplate        = TitleTemplate;

            return(copy);
        }