Intersoft ClientUI Documentation
CanUserOpenDocument Property
See Also  Send Feedback
Intersoft.Client.UI.DocumentViewers Namespace > FlowDocumentViewerBase Class : CanUserOpenDocument Property






Gets or sets a value that indicates whether users can open a FlowDocument in the runtime. Gets or sets a value that indicates whether users can open a FlowDocument in the runtime.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property CanUserOpenDocument As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FlowDocumentViewerBase
Dim value As Boolean
 
instance.CanUserOpenDocument = value
 
value = instance.CanUserOpenDocument
C# 
[CategoryAttribute("Common Properties")]
public bool CanUserOpenDocument {get; set;}
Delphi 
public read-write property CanUserOpenDocument: Boolean; 
JScript 
CategoryAttribute("Common Properties")
public function get,set CanUserOpenDocument : boolean
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property bool get_CanUserOpenDocument();
public: __property void set_CanUserOpenDocument( 
   bool value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property bool CanUserOpenDocument {
   bool get();
   void set (    bool value);
}

Property Value

Type: Boolean

The default is False.

Remarks

You can allow users to open a FlowDocument from local computer at runtime. You must display the Open command button by enabling CanUserOpenDocument property. To open a local FlowDocument, users click on the Open command button and select a document from the Open File dialog box such as shown in the following screenshot.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.