Example #1
0
 public static PdfViewControl GetPdfViewControl(this PreviewControl previewControl)
 {
     return(previewControl
            .GetType()
            .GetProperty("PdfViewControl", BindingFlags.Instance | BindingFlags.NonPublic)?
            .GetValue(previewControl) as PdfViewControl);
 }
Example #2
0
 internal static PdfViewControl GetPdfViewControl(this PreviewControl previewControl)
 {
     return(previewControl?
            .GetType()
            .GetProperty("PdfViewControl", Flags, null, typeof(PdfViewControl), new Type[0], null)?
            .GetValue(previewControl, Flags, null, null, null) as PdfViewControl);
 }
Example #3
0
 public static PdfViewControl GetPdfViewControl(this PreviewControl previewControl)
 {
     return(previewControl?
            .GetType()?
            .GetField
            (
                "_pdfViewControl",
                System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic
            )?
            .GetValue(previewControl) as PdfViewControl);
 }