Determines whether the workbook can only be opened in read-only mode. |
<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> public boolean ReadOnly{ get; set; } </pre></td></tr></table> |
<p>Public Property <a class="confluence-link unresolved" data-content-title="ReadOnly" data-linked-resource-default-alias="ReadOnly" href="#">ReadOnly</a>() As Boolean</p> |
//--- Get the ReadOnly value for the workbook bool readOnly = wb.ReadOnly; //--- Set the ReadOnly value for the workbook wb.ReadOnly = true; |
'--- Get the ReadOnly value for the workbook Dim readOnly As Boolean = wb.ReadOnly '--- Set the ReadOnly value for the workbook wb.ReadOnly = True |