New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a document source that loads PDF documents from a byte array.

Definition

Constructors

Initializes a new instance of the ByteArrayDocumentSource class.

C#
public ByteArrayDocumentSource()

Initializes a new instance of the ByteArrayDocumentSource class with the specified byte array.

C#
public ByteArrayDocumentSource(byte[] bytes, bool readBytesAsync = true)
Parameters:bytesbyte[]

The byte array containing the PDF document data.

readBytesAsyncbool

A value indicating whether to import the bytes asynchronously. The default value is true.

Properties

Gets or sets the byte array containing the PDF document data.

C#
public byte[] Bytes { get; set; }
Property Value:

The byte array containing the PDF document data.

Gets or sets a value indicating whether the document import should be performed asynchronously.

C#
public bool IsImportAsync { get; set; }
Property Value:

true if the document import is performed asynchronously; otherwise, false. The default value is true.

Operators

Performs an implicit conversion from a byte array to ByteArrayDocumentSource.

C#
public static implicit operator ByteArrayDocumentSource(byte[] bytes)
Parameters:bytesbyte[]

The byte array to convert.

Returns:

ByteArrayDocumentSource

A new ByteArrayDocumentSource instance with the specified byte array.