Integrating with Other Products > API Guide > PTC Mathcad Prime Objects > Object: WorksheetReadonlyOptions
  
Object: WorksheetReadonlyOptions
This object represents the PTC Mathcad PrimeWorksheetReadonlyOptionsCOM interface Ptc.MathcadPrime.Automation.IMathcadPrimeWorksheetReadonlyOptions.
This interface can be applied to a worksheet at the time of its creation. The options of the created worksheet cannot be subsequently changed.
Methods
SetOptionValue(optionNameArg as WorksheetReadonlyOptionNames, optionValueArg as Variant)—Sets the value of the WorksheetReadOnly option by specified name.
optionNameArg is the WorksheetReadOnly option name.
optionValueArg is the WorksheetReadOnly option value.
Returns:
S_OK if the WorksheetReadOnly option value was successfully set.
S_FALSE if the WorksheetReadOnly option value was not successfully set. This includes the cases of wrong option name or value.