SkinOpenNewDocument Method |
Creates a new
RhinoDoc from the given template (or a
blank document when the path is null/empty/missing) and brings up
its document window. Must be called on the main UI thread.
Namespace:
Rhino.Runtime
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxprotected static RhinoDoc OpenNewDocument(
string templatePath
)
Protected Shared Function OpenNewDocument (
templatePath As String
) As RhinoDoc
Parameters
- templatePath
- Type: SystemString
Path to a template file, or null/empty for a blank document.
Return Value
Type:
RhinoDocThe new
RhinoDoc, or null on failure.
See Also