Creates a new annotation layer.
Visual Basic |
---|
Public Function CreateLayer() As Long |
The handle of the newly created layer. This value is passed back to NotateXpress methods that require a layer handle as a parameter (for example SetCurrentLayer method).
The default attributes (DefaultPenColor, DefaultPenWidth, DefaultBackColor, DefaultFillColor, DefaultStampFont, DefaultStampText, DefaultTextColor, DefaultTextFont, DefaultButtonFont, DefaultButtonText, DefaultHighlightBack, and DefaultHighlightFill) are applied to the tools in this layer.
The tool referenced by the DefaultTool property is made the current tool.
Note: NotateXpress must have a valid Client before you can call this method. If there is not current annotation client, this method fails.