PdfDocumentHelper.IsAppropriateSource(Object) Method
In This Article
Gets whether the object is a valid PDF document source for the PdfViewerControl.
Namespace: DevExpress.UI.Xaml.Controls.Internal.Pdf
Assembly: DevExpress.UI.Xaml.Controls.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
source | Object | The object that is being validated. |
#Returns
Type | Description |
---|---|
Boolean | true, if the object is a valid PDF document source; otherwise, false. |
#Remarks
The following source types are valid:
- System.IO.Stream
- Windows.Storage.Streams.IRandomAccessStream
- byte[]
- Windows.Storage.StorageFile
- System.Uri
- string
If the object is not any of these types, the IsAppropriateSource method returns false.
See Also