public static PdfViewControl GetPdfViewControl(this PreviewControl previewControl) { return(previewControl .GetType() .GetProperty("PdfViewControl", BindingFlags.Instance | BindingFlags.NonPublic)? .GetValue(previewControl) as PdfViewControl); }
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); }
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); }