Class

MobileDocumentViewer


Description

This control class allows iOS users to view and edit (for compatible file types) the most common types of documents, including: PDF, Numbers, Pages, Excel, Word, Video, Images, RTF, plain text etc.

Properties

Name

Type

Read-Only

Shared

Name

String

✓

Methods

Name

Parameters

Returns

Shared

Handle

Ptr

Show

files() As FolderItem

Events

Name

Parameters

Returns

Closing

DocumentSaved

file As FolderItem

Opening

Property descriptions


MobileDocumentViewer.Name

Name As String

The name of the control.

This property is read-only.

Method descriptions


MobileDocumentViewer.Handle

Handle As Ptr

The handle to the underlying native OS control.

Important

This is supported for iOS only.


MobileDocumentViewer.Show

Show(files() As FolderItem)

Opens the document viewer for the received FolderItem instances.

Event descriptions


MobileDocumentViewer.Closing

Closing

Called when the control's layout is closing.


MobileDocumentViewer.DocumentSaved

DocumentSaved(file As FolderItem)

Raised when the user confirms to commit the changes made on the displayed document.


MobileDocumentViewer.Opening

Opening

Called when the control's layout is opening.

This is where you typically put initialization code.

This example in the Opening event of a label sets its text to "Hello":

Me.Text = "Hello"

Compatibility

Project Types

Mobile

Operating Systems

iOS

See also

MobileControl parent class, FolderItem